Hi @Peter Hutchison ,
Welcome to the Microsoft Q&A platform!
Based on your description, the error message you see, PSRemotingTransportException, usually indicates a problem with the connection to the remote server. Here are a few additional steps you can try:
- Make sure WinRM is configured correctly on both the client and the server. You can run winrm quickconfig on both machines to set the necessary settings.
- Since you are using Kerberos, make sure the time on both the client and the server is synchronized. Kerberos is very sensitive to time differences.
- Verify that the SPN for the Exchange server is set correctly. You can use the setspn command to check and set the SPN.
- Double-check that the firewall rules allow traffic on the ports required by WinRM (the default is 5985 for HTTP and 5986 for HTTPS).
- Make sure the credentials you are using have the necessary permissions to access the Exchange server. Sometimes, re-entering the credentials can help.
- If you are using HTTPS, make sure the SSL/TLS settings are configured correctly and there are no issues with the certificate.
- Make sure you have the latest version of PowerShell installed, as updates can sometimes resolve connection issues.
Here is a short snippet of code to check the WinRM configuration:
winrm get winrm/config
If these steps do not resolve the issue, you may need to enable more detailed logging for WinRM and PowerShell to get more insight into the issue. You can enable logging using the following command:
Enable-WSManTrace
Enable-PSRemoting -Force
Please feel free to contact me for any updates. And if this helps, don't forget to mark it as an answer.
Best,
Jake Zhang