Configure and troubleshoot Windows Management Instrumentation
23 July 2000 by Snakefoot | Comment » | Trackback OffWindows Management Instrumentation (WMI) will fail to start or operate properly if the WMI repository is corrupt. Depending on what version of Windows, there are different ways to repair/rebuild/reset the WMI repository:
More Info MS KB Q216738
More Info MS KB Q266416
More Info MS KB Q305992
More Info MS KB Q823775 (Replaces Q319101)
More Info MS KB Q875605
Note if for some obscure reason wanting to disable the WMI service, then WinMgmt.exe will complain, this can be solved by running these commands before disabling:
- Windows Vista/2008:
winmgmt /verifyrepository
winmgmt /salvagerepository - Windows XP (Requires atleast SP2):
rundll32 wbemupgd, UpgradeRepository
- Windows 2003 (Requires atleast SP1):
rundll32 wbemupgd, RepairWMISetup
- Other versions (Note it will reset the ICS and ICF configuration):
- winmgmt /clearadap
- winmgmt /kill
- winmgmt /unregserver
- winmgmt /regserver
- winmgmt /resyncperf
- net stop winmgmt
- del %windir%\system32\Wbem\Repository\*.* /s
- net start winmgmt
- %windir%\system32\wbem\wbemtest.exe
More Info MS KB Q216738
More Info MS KB Q266416
More Info MS KB Q305992
More Info MS KB Q823775 (Replaces Q319101)
More Info MS KB Q875605
Note if for some obscure reason wanting to disable the WMI service, then WinMgmt.exe will complain, this can be solved by running these commands before disabling:
To see all parameters for WinMgmt.exe :winmgmt /clearadap
winmgmt /kill
winmgmt /unregserver
winmgmt /?
Tags:
Category:
Updated: 14 July 2008
Comment by Tim Ewald - 30 January 2008 @ 18:07 Reply
Great information! Saved me a lot of hair pulling. Thanks!