I'm getting the following error whenever I try to view the dependencies for any service on our Windows 2003 Enterprise Server:

WMI: Not Found

So three questions pop into my head at this point:

  1. Obviously, what can I do to fix this? Hopefully the answer is not a re-pave.
  2. Is it actually possible that WMI is not installed? I didn't set this machine up so I'm not sure what the other person did.
  3. Could the WMI repository be corrupt?

So, how can I fix this? How can I tell if WMI was just not installed or if the WMI Repository is corrupt?


The following script can be run to rebuild a corrupt WMI
(Source: Duncan McAlynn, 2004-11-22, How Do I Rebuilt a Corrupt WMI Repository?) (Dead link. Archived version here.)

net stop winmgmt
cd %systemroot%\system32\wbem 
rd /S /Q repository 

regsvr32 /s %systemroot%\system32\scecli.dll 
regsvr32 /s %systemroot%\system32\userenv.dll 

mofcomp cimwin32.mof 
mofcomp cimwin32.mfl 
mofcomp rsop.mof 
mofcomp rsop.mfl 
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s 
for /f %%s in ('dir /b *.mof') do mofcomp %%s 
for /f %%s in ('dir /b *.mfl') do mofcomp %%s 
echo DONE reboot 

Check out the folder %SystemRoot%\System32\Wbem\Repository\FS -- this is where your WMI repository is stored. If there are files in there, it means it is installed, but probably corrupt.

Delete everything in %SystemRoot%\System32\Wbem\Repository then reboot to fix the problem.

Alternatively, you could try Microsoft's WMI Diagnosis Utility to diagnose WMI.

  • Actually, deleting the repository is the last thing to do, especially in a production environment, because it is likely to create further problems (if I remember correctly the documentation that comes with WMIDiag.vbs - your second link - also suggests this) I even remember a webcast by Alain Lissoir about WMI troubleshooting that begins by 'Please do not delete the repository' - I will try to find it and post the link. – Uros Calakovic Aug 29 '09 at 8:46
  • Here is the webcast I was talking about: microsoft.com/events/series/detail/… – Uros Calakovic Aug 29 '09 at 11:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.