up vote 0 down vote favorite
share [g+] share [fb]

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?

link|improve this question

75% accept rate
feedback

2 Answers

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.

link|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: microsoft.com/events/series/detail/… – Uros Calakovic Aug 29 '09 at 11:42
feedback

The following script can be run to rebuild a corrupt WMI (from http://msmvps.com/blogs/lduncan/pages/20217.aspx)

net stop winmgmt
c: 
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 
pause
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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