To enable a computer for Windows PowerShell remoting, you must configure the listeners to listen on the correct ports. For a single computer, you can use the Enable-PSRemoting cmdlet. To configure the listeners on all computers in a domain, enable the Allow automatic configuration of listeners Group Policy setting.

If you try to connect to a remote computer that is not enabled for remoting, Windows PowerShell displays one of the following errors, depending on the circumstances.

  Copy Code
ERROR:ACCESS IS DENIED

- or -

  Copy Code
ERROR: The connection to the remote host was refused. Verify that the WS-Management service is running on the remote host and configured to listen for requests on the correct port and HTTP URL.

To configure listeners on all computers in a domain

  1. Enable the Allow automatic configuration of listeners Group Policy setting.

    This policy setting is in the following policy path.

    Computer Configuration\Administrative Templates\Windows Components \Windows Remote Management (WinRM)\WinRM Service

  2. In the Policy options, specify the IPv4 and IPv6 filters. Wildcards (*) are permitted.

See Also