WMIC Alias Not Found: How to Enable It
The Wmic functionality was deprecated for both Windows 10 and Windows 11
2 min. read
Updated on
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
Getting the WMIC alias not found error can be a real hassle when you want to find system information. Windows 10 and 11 systems come with the feature disabled by default, so that could be why it’s happening.
Else, you might be dealing with corrupted WMI repositories. Here’s how to fix that so you can regain access to WMIC:
How can I fix the Wmic alias not found error?
First, runย the WMI Diagnosis Utility, which will help you confirm if that is really your issue. If it is indeed, here’s what you need to do:
- Run the following command: winmgmt /verifyrepository.
- If the results are inconclusive, run: winmgmt /salvagerepository.
- Check again wmi repository had been repaired successfully: winmgmt /verifyrepository.
However, if this fails, it means that you will actually have to rebuild the entire WMI Repository from scratch. Don’t be alarmed, we’re here to show you exactly how.
- Open the Start menu, search for CMD Prompt and open the app.
- To disable and stop the winmgmt service, run: net stop winmgmt.
- Remove or rename C:\Windows\System32\wbem\repository.
- Open CMD Prompt as Administrator.
- In the CMD prompt Navigate to C:\Windows\System32\wbem\.
- Run the following command: for /f %s in (‘dir /b *.mof’) do mofcomp %s.
- Now run the command: for /f %s in (‘dir /b en-us\*.mfl’) do mofcomp en-us\%s.
- Restart your PC.
While Microsoft has removed WMIC from Windows 10 and 11, you can still fix the WMI access denied error after re-enabling the functionality on your PC.
If you encounter the WMI not recognized error, the steps outlined in this article will help you troubleshoot these issues quickly.
That is pretty much all you have to do in order to fix this dreaded error. Upon rebooting your PC, you will no longer have to deal with it.
Was this guide helpful to you? Share your experience with us in the comments section below.
User forum
0 messages