I am trying to connect to an Exchange server via a wsman connection using PowerShell. The client server in question is in a Workgroup, while the Exchange server is in its own domain.
I use the following command to try to connect to the server:
connect-wsman -connectionuri http://servername/PowerShell -credential domain\administrator
I then get the full error:
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.
This worked previously when the client server in question was in the same domain as the Exchange server. Firewalls are off, all servers are TrustedHosts with respect to WinRM.
Interestingly, when I use:
connect-wsman -computername servername -credential domain\administrator
I do not get any errors. However, I need to be able to use the URI instead of the computer name.
Any Ideas?