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.

  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 for remoting

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.

See Also