Allowing PowerShell to Query Remotely through a GPO

If you want to query remote computers' WMI properties on your network using PowerShell, this quick GPO setting can open the proper ports on the remote workstations.

Creating a new GPO at the domain level:

  1. Under the Local Computer Policy heading, double-click Computer Configuration.
  2. Double-click Administrative Templates, Network, Network Connections, and then Windows Firewall.
  3. If the computer is in the domain, then double-click Domain Profile; otherwise, double-click Standard Profile.
  4. Click Windows Firewall: Allow remote administration exception.
  5. On the Action menu, select Properties.
  6. Click Enable, and then click OK.