Freigeben über


How to Reset Windows 7 WMI

Currently, we have no script to rebuild WMI in Windows 7 client. Following is the procedure to rebuild WMI in Windows 7.

  1) Perform a manual logcopy on the PC.
  2) Open an elevated command prompt.
  3) Verify the WMI repository is not corrupt by running the following command:

      winmgmt /verifyrepository

If the repository is not corrupted, a “WMI Repository is consistent” message will be returned. If you get something else, go to step 4.

4) Run the following commands:   

winmgmt /salvagerepository

If the repository salvage fails to work, then run the following command to see if it resolves the issue:
winmgmt /resetrepository

After the last command, there should be a “WMI Repository has been reset” message returned.

NOTE: We always use winmgmt /resetrepository to repair the WMI in the Windows 7 client.

Comments

  • Anonymous
    January 01, 2003
    Thank you very much for sharing this!