Powershell Is Unable To Connect To The Remote Server

You may find that you get the following error when trying to run PowerShell commands connecting to remote servers:

Powershell is unable to connect to the remote server

This is because you haven’t enabled PowerShell Remoting. To enable PowerShell Remoting, create a group policy object with the following policies set:

Computer Configuration -> Policies -> Administrative templates -> Windows Components -> WinRM -> Allow automatic configuration of listeners

Add the IP addresses of the servers you want to listen on (or * for all).

Computer Configuration -> Policies –> WindowsSettings –> SecuritySettings –> SystemServices –> WindowsRemoteManagement -> Windows Remote Management

Set to Automatic.

You should be able to connect to the remote servers effected by this GPO through PowerShell commands now.

VN:F [1.9.22_1171]
Rating: 5.5/10 (2 votes cast)
Powershell Is Unable To Connect To The Remote Server, 5.5 out of 10 based on 2 ratings

Leave a comment

Your email address will not be published. Required fields are marked *