Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

The following script can be run to rebuild a corrupt WMI (from

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 
share|improve this answer

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 this tool to diagnose WMI.

share|improve this answer
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:… – Uros Calakovic Aug 29 '09 at 11:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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