IF you run ‘gpupdate’ and get some WMI corruption, or if you receive errors in your event logs relating to WMI corruption, you can do this to repair the respository.

  1. Stop the WMI service

  2. Run this code, CMD as administrator etc:

winmgmt /salvagerepository
  1. And you’re good to go!