Abstract: When you setup a new Microsoft Exchange server you might see the error that it couldnĀ“t connect to any other Exchange Server inside the powershell. The error message will be something like the following:
VERBOSE: Connecting to exchange01.int.contoso.com.
New-PSSession : [exchange01.int.contoso.com] Connecting to remote server exchange.int.contoso.com failed with the
following error message : The connection to the specified 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. For more
information, see the about_Remote_Troubleshooting Help topic.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Microsoft.Excha ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ FullyQualifiedErrorId : CannotConnectWinRMService,PSSessionOpenFailed
If that happen to you, then the first step should be to check your local proxy configuration on that server (via netsh winhttp show proxy), as it might be that you didnĀ“t have the needed exclusions set. The following:
netsh winhttp set proxy proxy.int.contoso.com:3128 bypass-list=*.int.contoso.com;10.*
Might therefore help you to fix that. If not check the Microsoft KB 2027064 for other solutions.