wmi access denied
时间: 2023-09-21 13:10:19 浏览: 123
accessdenied
WMI (Windows Management Instrumentation) is a Windows feature that allows you to manage and monitor various aspects of your system. "Access Denied" error usually indicates that the user account you are using doesn't have sufficient privileges to access or modify WMI.
To resolve this issue, you can try the following steps:
1. Run the command prompt as an administrator: Right-click on the Command Prompt icon and select "Run as administrator."
2. Grant necessary permissions: Type the following command and press Enter:
```bash
net localgroup administrators /add networkservice
```
3. Restart the WMI service: Type the following command and press Enter:
```bash
net stop winmgmt
net start winmgmt
```
4. Reset the WMI repository: Type the following command and press Enter:
```bash
winmgmt /resetrepository
```
5. Restart your computer.
After these steps, you should be able to access WMI without encountering the "Access Denied" error. However, if the issue persists, you may need to consult with your system administrator or check for any group policies that restrict WMI access.
阅读全文