To reset the WMI repository (which is essentially clearing the WMI cache), open Command Prompt as an administrator and use the command winmgmt /resetrepository.
Here's a more detailed breakdown:
Steps to Reset the WMI Repository:
- Open Command Prompt as Administrator:
- Press Windows+Q, type "cmd", right-click "Command Prompt", and select "Run as Administrator".
- Stop the WMI Service (Optional but Recommended):
- Type net stop winmgmt and press Enter.
- If prompted to confirm, type "Y" and press Enter.
- Reset the Repository:
- Type winmgmt /resetrepository and press Enter.
- You should see a message indicating that the WMI repository has been reset.
- Start the WMI Service (Optional):
- Type net start winmgmt and press Enter.
- Reboot your computer .
If that doesn’t work do this
1. Stop the WMI Service:
- Open Command Prompt as an administrator (search for "cmd" in the Start menu, right-click, and select "Run as administrator").
- Type net stop winmgmt and press Enter.
- If prompted to confirm, type "Y" and press Enter.
2. Rename the Repository Folder:
- Navigate to the WBEM directory: C:\Windows\System32\wbem.
- Rename the Repository folder to something like Repository.old.
3. Restart the WMI Service:
- In the Command Prompt, type net start winmgmt and press Enter.
4. Rebuild the WMI Repository:
- Open a new Command Prompt window as an administrator.
- Change the directory to the WBEM directory: cd C:\Windows\System32\wbem.
- Run the following command to register all DLLs in the WBEM directory: for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s.
- Reboot the server.