Reputation: 278
We have Windows Server 2019 and I am trying to enable IIS feature on it but getting this error 'The WS-Management service cannot process the request. The service is configured to not accept any remote shell requests.'.
I have searched google a lot and followed the steps and enabled AllowRemoteShellAccess to true
, but still getting the same error.
I am not sure is there any other step that needs to be done before that since I do not have a server side background.
Any help would be appreciate. Thank you.
Upvotes: 4
Views: 64227
Reputation: 1427
The answers here didn't work for me, but this did:
Open regedit
Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WinRM\Service\WinRS
Set AllowRemoteShellAccess
to 1
Reboot.
Then run the add roles and services operation
Then undo the change to secure the computer and reboot again when finished
Upvotes: 0
Reputation: 21
Enabling this policy didn't work for me either. Here's what worked for me:
I hope this works for you.
Upvotes: 2
Reputation: 3974
CIS Bench marks are more advanced and secure set of instructions to tighten the security of Microsoft Windows Infrastructure. These Bench marks provide instructions to secure every aspect of operating systems (Windows Linux) as well as leading web servers. If you follow these CIS bench marks particularly for Windows Server 2016 or 2019 you might be blocking many items required for the administrator to perform routine jobs.
There is a group policy object which needs to be amended to resolve this issue. The setting can be located in the following group policy path to resolve the issue of “The ws-management service cannot process the request”: Computer Configuration > Administrative Templates > Windows Components > Windows Remote Shell > Allow Remote Shell Access. Once you are done with the disabling of this Group Policy Object, don’t forget to run the command gpupdate /force.
Upvotes: 4