The WMI error can be due to a corrupted WMI repository folder. As such, rebuilding the WMI repository might also fix the Windows Management Instrumentation error. This is how you can rebuild the WMI repository.
- Open the Command Prompt as administrator by selecting Command Prompt (Admin) on the Win + X menu.
- Enter ‘net stop winmgmt’ in the Prompt, and press the Enter key.
- Press the Windows key + R keyboard shortcut.
- Input ‘System32’ in Run, and press the OK button.
- Then open the wbem subfolder that’s in the System32 folder.
- Right-click the Repository folder and select Rename.
- Enter ‘Repository.old’ as the new folder title.
- Open the Command Prompt again.
- Input ‘net start winmgmt’ and press Enter.
- Select Restart on the Start menu to restart Windows.