How to fix "The WS-Management service cannot process the request. The WMI provider returned an 'access denied' error."
Error Description
This error occurs when the Windows Remote Management (WinRM) / WS-Management service attempts to interact with the Windows Management Instrumentation (WMI) repository but lacks the necessary administrative permissions to access the requested namespace. This typically happens because the user account executing the command—or the WinRM service account itself—has not been granted explicit remote or local launch/activation permissions within the WMI security settings, or because the User Account Control (UAC) filtering is blocking the administrative token over a remote connection.
Step-by-Step Fixes
Method 1: Grant WMI Namespace Security Permissions
- Press the Windows Key + R on your keyboard to open the Run dialog box.
- Type
wmimgmt.mscand press Enter to open the WMI Control console. - In the left pane, right-click on WMI Control (Local) and select Properties.
- Navigate to the Security tab in the properties window.
- Expand the root folder tree, locate the specific namespace causing the issue (usually Root\CIMV2), select it, and click the Security button at the bottom right.
- Look for your user account or group (e.g., Administrators or Remote Management Users). If it is not listed, click Add, type the object name, and click OK.
- Select the user or group, and in the "Permissions" section below, check the Allow boxes for:
- Execute Methods
- Enable Account
- Remote Enable
- Click the Advanced button to open Advanced Security Settings.
- Select the user account you just modified and click Edit.
- Ensure the Applies to dropdown menu is set to This namespace and subnamespaces.
- Click OK, then click Apply, and close all WMI properties windows.
Method 2: Configure DCOM Launch and Activation Permissions
- Press the Windows Key + R to open the Run dialog box.
- Type
dcomcnfgand press Enter to open Component Services. - In the left console tree, expand Component Services, expand Computers, and right-click on My Computer, then select Properties.
- Navigate to the COM Security tab.
- Under the Launch and Activation Permissions section, click the Edit Limits... button.
- In the security settings window, select Administrators or the specific user group you are using.
- Ensure that the Allow checkbox is selected for the following permissions:
- Local Launch
- Remote Launch
- Local Activation
- Remote Activation
- Click OK to save the changes.
- Under the Access Permissions section on the same tab, click Edit Limits....
- Ensure that Local Access and Remote Access are allowed for your administrative user or group.
- Click OK, then click Apply, and close the Component Services utility.
Method 3: Disable Remote UAC Restrictions (LocalAccountTokenFilterPolicy)
If you are connecting remotely using a local administrator account instead of a domain administrator account, Windows UAC strips administrative privileges by default. You can disable this restriction via the registry.
- Press the Windows Key + R, type
regedit, and press Enter to open the Registry Editor. - Navigate to the following registry path using the left pane hierarchy:
HKEY LOCAL MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System - Right-click on an empty space in the right pane, hover over New, and select DWORD (32-bit) Value.
- Name the new value exactly as:
LocalAccountTokenFilterPolicy - Double-click the newly created
LocalAccountTokenFilterPolicyentry to modify it. - Change the value data from
0to1and make sure the Base is set to Hexadecimal. - Click OK to save and apply the registry configuration changes.
- Close the Registry Editor.
Method 4: Restart WinRM and WMI Services
After applying the configuration changes, you must restart the relevant system services for the permissions to take full effect.
- Press the Windows Key + R, type
services.msc, and press Enter to open the Services management console. - Scroll down the list to find the Windows Remote Management (WS-Management) service.
- Right-click on it and select Restart.
- Next, scroll to find the Windows Management Instrumentation service.
- Right-click on it and select Restart. Note that restarting this service may prompt you to restart other dependent services; click Yes to proceed.
- Close the Services window and restart your machine if necessary.
There may be some errors. Learn Microsoft