Symptoms

When using an agent that uses PowerShell remoting you see the following error

"The WS-Management service cannot process the request. The service is configured to not accept any remote shell requests."


Cause

The Allow Remote Shell Access group policy setting has been disabled.


Resolution

Review and configure the following setting

Get-Item WSMan:\localhost\Shell\AllowRemoteShellAccess


The setting can be located in the following group policy path

Computer Configuration > Administrative Templates > Windows Components > Windows Remote Shell > Allow Remote Shell Access