Windows Error Fix: WS-Management Service Access Denied
The error "The WS-Management service cannot process the request. The WMI service returned an 'access denied' error" typically occurs when WinRM (Windows Remote Management) tries to interact with WMI (Windows Management Instrumentation) but lacks the required permissions. This happens due to misconfigured security descriptors, incorrect user account controls, or restricted namespace permissions.
Here is the complete step-by-step guide to resolve this issue.
Step 1: Run PowerShell as Administrator to Enable WinRM
Sometimes the WinRM service is not properly configured to accept local or remote requests.
- Press the Windows Key, type
powershell. - Right-click on Windows PowerShell and select Run as administrator.
- Type the following command and press Enter:
winrm quickconfig - If prompted to make changes, type
yand press Enter.
Step 2: Configure WMI Control Permissions
The user or service account must have explicit permissions to access the WMI Root namespace.
- Press
Win + Rto open the Run dialog box. - Type
wmimgmt.mscand press Enter. - Right-click on WMI Control (Local) in the left pane and select Properties.
- Go to the Security tab.
- Expand the Root folder, select the CIMV2 namespace, and click the Security button at the bottom.
- Look for your user account or the group you are using (e.g., Administrators or Remote Management Users). If it is not there, click Add to add the user/group.
- Click on the user/group and look at the permissions panel below.
- Check the Allow box for the following permissions:
- Execute Methods
- Enable Account
- Remote Enable
- Read Security
- Click Advanced.
- Select the user and click Edit. Ensure that the Applies to dropdown is set to This namespace and subnamespaces.
- Click OK, then Apply, and close all WMI property windows.
Step 3: Modify User Account Control (UAC) Registry Settings
If you are logging in with a local administrator account remotely, Windows UAC might strip your administrative tokens, resulting in an "access denied" error.
- Press
Win + R, typeregedit, and press Enter to open the Registry Editor. - Navigate to the following path:
HKEY LOCAL MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System - Right-click on an empty space in the right pane, select New, and then click DWORD (32-bit) Value.
- Name the new value:
LocalAccountTokenFilterPolicy - Double-click
LocalAccountTokenFilterPolicyand change its Value data to1. - Base should remain Hexadecimal.
- Click OK and close the Registry Editor.
Step 4: Add User to Remote Management Users Group
Your account must belong to the correct security groups to utilize WinRM services without triggering security blocks.
- Press
Win + R, typelusrmgr.msc, and press Enter (Note: If using Windows Home, use the command line method below instead). - Click on Groups in the left folder.
- Double-click on Remote Management Users.
- Click Add, type your username, and click Check Names.
- Click OK, then Apply.
Alternative Command Line Method for all Windows versions:
- Open Command Prompt as Administrator.
- Run the following command (replace
YourUsernamewith your actual Windows username):net localgroup "Remote Management Users" YourUsername /add
Step 5: Restart the WinRM and WMI Services
Apply all modifications by restarting both services.
- Open Command Prompt as Administrator or use the open PowerShell window.
- Stop and start the WMI service by running:
net stop winmgmt /y net start winmgmt - Restart the WinRM service by running:
net stop winrm net start winrm
ERROR_WSMAN_WMI_PROVIDER_NOT_CAPABLE | ERROR_WSMAN_WMI_INVALID_VALUE | ERROR_WSMAN_WMI_PROVIDER_ACCESS_DENIED | ERROR_WSMAN_WMI_CANNOT_CONNECT_ACCESS_DENIED | ERROR_WSMAN_INVALID_FILTER_XML
There may be some errors. Learn Microsoft