mercoledì 5 novembre 2014

WMI repository broken

Warning:
Rebuilding the WMI repository has resulted in some 3rdparty products not working until their setup is re-run & their MOF re-added back to the repository.

If Winmgmt /salvagerepository or Winmgmt /resetrepository does not resolve the issue, then manually rebuild repository:
1.Change startup type to Window Management Instrumentation (WMI) Service to disabled
2.Stop the WMI Service; you may need to stop IP Helper Service first or other dependent services before it allows you to stop WMI Service
3.Rename the repository folder:  C:\WINDOWS\system32\wbem\Repository to Repository.old
4.Open a CMD Prompt with elevated privileges
5.CD windows\system32\wbem
6.for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
7.Set the WMI Service type back to Automatic and start WMI Service
8.cd /d c:\  ((go to the root of the c drive, this is important))
9.for /f %%s in ('dir /s /b *.mof *.mfl') do mofcomp %%s
10.Reboot