Skip to content

Instantly share code, notes, and snippets.

@Hrxn
Created May 22, 2019 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hrxn/2a39ebbc6d9abea210dc0250ccfb3afb to your computer and use it in GitHub Desktop.
Save Hrxn/2a39ebbc6d9abea210dc0250ccfb3afb to your computer and use it in GitHub Desktop.
Windows: Rebuilding the WMI repository on Windows

Rebuild the WMI Repository

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment