Mahrukh Mehmood
Mahrukh Mehmood

Reputation: 278

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

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

Answers (3)

user2728841
user2728841

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

jrf
jrf

Reputation: 21

Enabling this policy didn't work for me either. Here's what worked for me:

  1. See if there are any IP addresses listed in iplisten by issuing the command "netsh http show iplisten".
  2. If there are, delete those by issuing the command "netsh http delete iplisten ipaddress=".
  3. Now try installing IIS and it should be successful.
  4. Re-add those IP addresses back by issuing the command "netsh http add iplisten ipaddress=".

I hope this works for you.

Upvotes: 2

Ding Peng
Ding Peng

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.

enter image description here

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

Related Questions