Windows Management Instrumentation Service Error

Hi,

When attempting to install Microsoft SQL Server 2008 Express Edition, during  initial set-up, I received an error message that 'WMI  cannot be started'. Further investigation showed that Windows Mgt. Instrumentation Service was started and running. I have run several WMIDiag. tests (each time after attempting recommended repairs through Windows Forums) and the latest test still shows many errors. During my investigations I have come to suspect a Repository problem. I have tried a solution, recommended by Halima S to rogerland on February 12, 2010 in this forum, to no avail. I am running Windows Vista Home Premium on a Dell Desktop Inspiron 530S dual-booted with Linux Mandriva and Ubuntu. I am getting very frustrated trying to fix this problem. One Error Code I received was 0X800700C1 which I investigated and found out that it could indicate a major system problem outside of WMI. Any help will be greatly appreciated.

 


newbee trying to learn something new
Answer
Answer

I found this batch file http://social.msdn.microsoft.com/forums/en-US/Vsexpressinstall/thread/632ca405-1c38-405b-9ed3-01785c9f99d1/ and it fixed the WMI problems on SQL Server 2003 (I'm not sure if it will fix things for SQL Server 2008 and I'm not positive it iwill work with Vista although it was posted in a Vista forum but seemed to be designed originally for XP).  Copy this into notepad as save as fixwmi.cmd and then from a command line run c:\fixwmi.cmd.

It takes several minutes to complete and at points it appears that it is not running but it is.  After it is complete, you see the :END statement start the SQL server installation again and you should be fixed (I hope).

FIXWMI.CMD
------------------------

@echo on
cd /d c:\temp
if not exist %windir%\system32\wbem goto TryInstall
cd /d %windir%\system32\wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak
for %%i in (*.dll) do RegSvr32 -s %%i
for %%i in (*.exe) do call :FixSrv %%i
for %%i in (*.mof,*.mfl) do Mofcomp %%i
net start winmgmt
goto End

:FixSrv
if /I (%1) == (wbemcntl.exe) goto SkipSrv
if /I (%1) == (wbemtest.exe) goto SkipSrv
if /I (%1) == (mofcomp.exe) goto SkipSrv
%1 /RegServer

:SkipSrv
goto End

:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End

I hope this helps.  I'm not entirely confident as it didn't come from a Microsoft source, but it seems it helped some people with the problem.  I don't know what Halima recommended but it might be the same as the above - if so, I apologize for repeating her advice that you already tried.

That error code typically applies to update problems.  If you aren't having any update issues and it occurred only once, I wouldn't worry about it.   If it occurs more often, post back and we'll check it out more throughtly.

If the above doesn't work, then I suggest you repost in the SQl Server Express Discussion Group at;http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/threads where experts on SQL Server will be happy to assist you with your problem.

I hope this helps.

Good luck!


Lorien - MCSE/MCSA/Network+/A+ --- If this post helps to resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of this message. By marking a post as Answered, or Helpful you help others find the answer faster.

2 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Answer
Answer

Try reviewing the following article - especially at the top. http://msdn.microsoft.com/en-us/library/aa394603(v=VS.85).aspx  There are links to downloads to troubleshoot WMi, links to troubleshooting WMi problems, links to creating logs which may help identify the problem, and much more.  Perhaps one of these links will help resolve the problems with WMI (and I think the procedure i gave you above was only applicable to XP which is why it did't work -sorry, it said it also applied to Vista but I guess they were wrong).

I hope this helps.

Good luck!


Lorien - MCSE/MCSA/Network+/A+ --- If this post helps to resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of this message. By marking a post as Answered, or Helpful you help others find the answer faster.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated December 2, 2022 Views 8,604 Applies to: