The WinRM client cannot process the request


Error message when you try to start Exchange 2013 Management Shell (EMS):

VERBOSE: Connecting to
New-PSSession : [] Connecting to remote server failed with the following error message: The WinRM client cannot process the request. It cannot determine the content type of the HTTP response from the destination computer. The content type is absent or invalid. 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], PSRemotingTransportException
+ FullyQualifiedErrorId : -2144108297, PSSessionOpenFailed

Additionally browsing the http://localhost/PowerShell site failed with HTTP 500 error and also in IIS Manager, opening Authentication settings of the PowerShell virtual directory under Default Web Site returns an error about the problem in the virtual directory’s the web.config file:



After comparing the /PowerShell virtual directory’s web.config file to the same file from a working server, it turned out there was an incorrect “<security> </security>” section where it was not allowed.
After removing the section /Powershell virtual directory was accessible and EMS was able to start and connect to the local server.