Share via


Exchange 2010/2013 Troubleshooting: The WinRM Shell client cannot process the request. The shell handle passed to the WSMan Shell function is not valid

In our Exchange environment, whether it is Exchange 2010 or 2013, we  might come across an error that when we  try run any form of command, where it is to re-balance our Exchange DAG or perform any other function in the EMS, we  are presented with a lot of red errors as follows: The WinRM Shell client cannot process the request. The shell handle passed to the WSMan Shell function is not valid.

https://collaborationpro.com/wp-content/uploads/2018/05/winrm.png

First thing we  might think is to reboot the server but unfortunately this won't fix the problem.

The solution here is to check the bindings in Exchange. In Exchange 2013, launch IIS and expand the server name and then sites. Click on the Exchange backend site and then click bindings on the right.

https://collaborationpro.com/wp-content/uploads/2018/05/bindings3.png

Click Edit on https port 444 as shown above and ensure that our certificate is selected. I have found even though it is showing, re-selecting it and clicking ok and close fixes the issue.

In Exchange 2010, we don't have the backend site for a mailbox server, in this instance, click on the default website and then click on bindings on the right hand side.

https://collaborationpro.com/wp-content/uploads/2018/05/bindings4.png

Click on https and then click Edit as shown above. As mentioned above, re-selecting the default certificate and clicking OK seems to "put it back" even though the certificate is already selected.

After this, if we open the EMS and run the command again it will succeed.