While using any WMIC command, if you get Access is denied error on Windows 11/10, this guide will help you get rid of the problem. No matter which WMIC parameter you use, you might come across the Access is denied message at times. In such situations, these solutions will help you troubleshoot the issue.
Although WMIC or Windows Management Instrumentation Command-line is deprecated from Windows 10 and is no longer in active development for Windows 11, you can use it on your computer. In case you don’t know, you can do various things with the help of WMIC commands. For example, you can check the battery level, find the hard disk health status, etc.
WMIC command give Access is denied error when connecting remotely
Here’s what you should do if the WMIC command gives Access is denied error when trying to connect remotely to a Windows 11/10 computer:
- Add LOCAL SERVICE in Group policy
- Enable Local Activation for Everyone user group
- Verify WMI permission
Before getting started with these steps, you log into an administrator account. Otherwise, you can make the necessary changes as described below.
1] Add LOCAL SERVICE in Group policy
In simple words, you need to check or verify the WMI impersonation rights. For that, you can take the help of the Local Group Policy Editor. To do that, follow these steps:
- Press Win+R > type gpedit.msc > hit the Enter button.
- Navigate to Computer Configuration > Windows Settings > Security Settings > Local Policies > User Rights Assignment.
- Double-click on the Impersonate a client after authentication setting.
- Check if LOCAL SERVICE is included in the list.
However, if it is not included, you need to add it to the same group. For that, follow these steps:
- Click the Add User or Group button.
- Search for local service and click the Check Names button.
- Click the OK button.
Once done, you can close all the windows, restart your computer and check if you can run the WMIC commands or not.
2] Enable Local Activation for Everyone user group
You need to set the correct DCOM permission on your computer. Otherwise, you will continue getting the Access is denied error while running a WMIC command. Follow the following steps to set the DCOM permission on Windows 11/10 PC:
- Press Win+R > type dcomcnfg > hit the Enter button.
- Navigate to Component Services > Computers > My Computer.
- Right-click on My Computer > Properties.
- Go to the COM Security tab.
- Click on the Edit Limits button.
- Select Everyone and tick both checkboxes under Allow.
- Click the OK button.
- Click on the other Edit Limits button.
- Select Everyone and tick the Local Launch and Local Activation checkboxes.
- Click the OK button.
However, if you cannot find the Everyone user group, you need to add it manually. For that, click the Add button, write everyone and click on the Check Names button. Then, click on the OK button.
3] Verify WMI permission
It is yet another important step you need to follow if those two solutions don’t work for you. You need to make sure that a specific user has three permissions – Execute Methods, Provider Write, and Enable Account. If the Authenticated Users doesn’t have these three permissions, you may not be able to access WMIC on Windows 11 or Windows 10 computers.
Therefore, follow the following steps to verify the WMI permission:
- Press Win+R > type wmimgmt.msc > press the Enter button.
- Right-click on WMI Control and select Properties.
- Switch to the Security tab.
- Expand Root and go to SECURITY.
- Click on the Security button.
- Select Authenticated Users.
- Tick Execute Methods, Provider Write, and Enable Account checkboxes.
- Click the OK button to save the change.
However, if you cannot find the Authenticated Users in the Group or user names list, you need to add it manually. To do that, click the Add button, write authenticated users in the empty box, and click the Check Named button.
Then, you can change the permission as mentioned above. Once done, it is recommended to restart your computer. Following that, you will be able to use WMIC commands without any error.
How do I fix WMI Access is denied?
To fix WMI Access is denied or WMIC Access is denied, you need to follow the same set of solutions as mentioned above. You need to check the permission in various locations, including the Local Group Policy Editor, Component Services, and WmiMgmt. All the steps are mentioned above, and you can follow them one after one.
Read: How to locate or find Model Name or Serial Number of Windows computer using WMIC
How do I use WMIC on a remote computer?
To use WMIC commands on a remote computer, you need to enter this command: /node:target-computer-name, where the target-computer-name is the original name of the remote computer. However, your computer must be connected to the same local network to which your host computer is connected. Otherwise, it won’t work.
How do I fix WMI Access is denied 0x80070005 error?
Error 0x80070005 means that the Domain Controller/local Windows system could not verify the credentials for the target computer. So apart from trying the suggestions in this post, ensure that you are using the correct credentials.