To enable a single computer to receive remote Windows PowerShell commands and accept connections, use the Enable-PSRemoting cmdlet. To enable remoting for multiple computers in an enterprise, use one or more of the options that are described in this topic.
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.
ERROR:ACCESS IS DENIED
- or -
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 for remoting
To configure listeners for remoting on multiple computers, enable the Allow automatic configuration of listeners Group Policy setting. For more information, see How to Enable Listeners by Using a Group Policy.
To set the WinRM startup type
To enable a firewall exception
To enable a firewall exception on multiple computers, use the Windows Firewall: Allow Local Port Exceptions Group Policy setting. For more information, see How to Create a Firewall Exception.