locked
Receiving WMI configuration error. SQL Server System Configuration cannot be executed due to that RRS feed

  • Question

  • Hello PPl,

    I am getting this error again and again.

    The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine mymachine Error:2147749896 (0x80041008).

     

    I uninstall all version of Visual Studio 2005 just kept Microsoft .NET Framework 2.0.  Still I am getting this error when I am running SQLEXPR.exe to install the SQL Server 2005 Express.

     

    PLEASE HELP!

     

    Thank you. 

    Saturday, January 7, 2006 4:02 AM

Answers

  • I found this batch file and ran it and it fixed my WMI problems on SQL Server 2003.  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.

     

    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

    Monday, January 30, 2006 4:55 PM

All replies

  • I found this batch file and ran it and it fixed my WMI problems on SQL Server 2003.  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.

     

    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

    Monday, January 30, 2006 4:55 PM
  • I was also receiving a WMI configuration error when trying to install SQL Server 2005 Standard Edition that was distributed by Microsoft during the Ready To Launch tour.  Running the batch file above fixed my WMI configuration issue.  Thanks!
    Friday, February 10, 2006 4:16 PM
  • Many thanks for this wonderful script I must say.

    My internet explorer XP SP2 would not let me go any further than logon and password authentication pages on some web sites. (like www.ewiz.com and others...)

    After trying every possilbe wiht the settings under the tools menu no luck, I was about to reinstall the whole XP...until this script fixed it all...

    Thank you!

     

     

    Monday, March 20, 2006 6:03 AM
  • This information was perfect.

    I have been looking for the past week, trying to get SQL express to install

    Thanks !!!!!!!!

    Sunday, April 16, 2006 8:31 PM
  • For whatever reason, copying and pasting this script pasted in unicode rather than ascii. This made the cmd parser barf. To convert it from unicode to ascii (on Windows 200 or XP), use the "type" command redirected to a file, e.g,

    type original.in.unicode.bat > ascii.copy.bat

    Then run the new batch file.

    (As it turns out, my problem wasn't with the WMI configuration, but that I'd told my application firewall to deny WMI run permissions.)

    Saturday, April 29, 2006 9:42 PM
  • Hi,

     

    i also have the wmi problem. Then i also wanted to put the script onto the server to fix the wmi. But as soon as i copy the file, it is directly deleted by f-secure, which thinks that the script is a trojan.

     

    Any suggestions,

     

    thx in advance.

    Wednesday, May 17, 2006 7:55 AM
  • Rename the file to txt, copy it, rename back to cmd.

    If f-secure still catches that, just disable it and copy the cmd file as is.

     

    Wednesday, May 17, 2006 8:47 AM
  • I have tried this script several times, with no effect.  I have administrator privileges and although I get the same error mentioned by I Mrus, the the LocalSystem account is affected.  Beyond having admin authority and having the script (I run it, reboot, install SQL Srver Express; when fails, uninstall with Add/Remove programs) what can be done to correct this.  Below is a sample of the Application error from Computer Mangement:

    Event Type: Warning
    Event Source: WinMgmt
    Event Category: None
    Event ID: 63
    Date:  6/7/2006
    Time:  1:03:47 AM
    User:  MY_NOTEBOOK\Owner
    Computer: MY_NOTEBOOK
    Description:
    A provider, HiPerfCooker_v1, has been registered in the WMI namespace, Root\WMI, to use the LocalSystem account.  This account is privileged and the provider may cause a security violation if it does not correctly impersonate user requests.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    BTW - the link is dead.

    Any ideas?

    Wednesday, June 7, 2006 3:31 PM
  • I just wanted to add to this thread to say that the script also worked for me.

     

    Thanks so much for that!

    Thursday, July 20, 2006 6:34 PM
  • I have just run that script and then launched the SQLEXPR_ADV.EXE again, and I still receive this error with the usual WMI configuration message:

    Error:  70346 (0x112ca).

    Windows XP SP2 fully updated from Microsoft Updates.

    Wednesday, August 16, 2006 9:06 AM
  • Thank you for this. God Bless.
    Tuesday, September 12, 2006 3:18 AM
  • Any idea why the script has not corrected this issue on my laptop?

    Dell Lattitude D620

    XP SP2 fully updated

    Saturday, September 16, 2006 6:57 PM
  • Tried it.  Worked just as you said.  thanks

    Saturday, January 20, 2007 4:33 PM
  • Thanks - it worked for me despite Microsoft's on line help checker saying the problem was unknown.
    Wednesday, January 24, 2007 8:51 PM
  • Any other suggestions? Ran this and I am still getting the errors when I try to install or uninstall SQL.
    Wednesday, January 31, 2007 5:58 PM
  • Hi,

    ich have encountered the same error and the script has not fixed it.

    BUT: As I called the script the second time, it seems to work....

     

     

    Saturday, February 24, 2007 11:20 PM
  • Thanks, really the .cmd script helped me out. It took several hours for some strange reason on a pretty fast sever, but I could reinstall SQL Server and now everything works again
    Thursday, March 1, 2007 6:05 AM
  • Had the same problem which has taken roughly 4 hours away from my life, just fixed it. I used the fixwmi.cmd - no result (at least not immediate, if at all). Tried services.msc and started every service that looked remotely connected to WMI, RPC and/or SQL that was not running. I cannot tell you which service I started that worked (as my OS is French, and the services do not have the same name in English - I look for the keywords).
    Sunday, March 4, 2007 4:00 AM
  • My attempts to install the batch file failed. It appears in an oscillating mode on the screen no matter for how long it runs. No confirmation of succeeded installation follows. Any suggestions?
    Thursday, March 22, 2007 8:06 AM
  • I think I found a fix.  I have SP1 which introduced a ton of new DCOM settings.  I granted the network service and local service accounts local launch permissions in DCOM's machine-limit's settings.
    Wednesday, April 4, 2007 6:44 PM
  • that's gr8 answer
    Monday, April 16, 2007 1:50 PM
  • Hi,

    I solved this by uninstalling the following programs and reinstallig them in the specified order. I did not have to run the script.

    1. WindowsInstaller Svensk.exe
    2. dotnetfx.exe (Framework 2.0)
    3. SQLEXPR_SVE.EXE (SQL Server 2005 Express)
    4. msxml6.msi
    5. SQLServer2005_SSMSEE.msi (Sql Server 2005 Express Management Studio Express)

    /Jonas

    Monday, April 23, 2007 12:32 PM
  • Gracias. Thanks. WMI ya no da error

     

    FIXWMI.CMD

     

    me funcionó para resolver el problema

    Wednesday, April 25, 2007 5:49 PM
  • Failed to solve the problem on my Dell Latitude 820.
    I notice another post says failed on Dell Latitude 620.

    I appreciate the effort.  thanks.
    Wednesday, August 29, 2007 7:12 PM
  •  

    Hi,

     

    I run this batch but I am still getting same error. Do you have any idea?

     

    Thanks

     

    OS XP Pro SP2

    1 Gb of Ram

    Thursday, August 30, 2007 1:51 PM
  • I tried the scrip(I'm running Vista Home Premium) and I get the following errors,  any ideas on how I can fix them?

     

     

     

    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 15 -
     18:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wmipcima.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wmipcima.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 7 -
    12:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wmipdfs.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wmipdfs.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 7 -
    12:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wmipdskq.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wmipdskq.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 7 -
    12:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp WmiPerfClass.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: WmiPerfClass.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 15 -
     22:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp WmiPerfInst.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: WmiPerfInst.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 15 -
     21:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wmipicmp.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wmipicmp.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wmipiprt.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wmipiprt.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 7 -
    12:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wmipjobj.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wmipjobj.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 7 -
    14:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wmipsess.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wmipsess.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 7 -
    12:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wmitimep.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wmitimep.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    18:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp WMI_Tracing.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: WMI_Tracing.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 15 -
     28:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wmp.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wmp.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     155:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wmpnetwk.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wmpnetwk.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 11 -
     72:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wpc.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wpc.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     51:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wpcsprov.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wpcsprov.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 5 -
    8:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wpcuninst.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wpcuninst.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 5 -
    8:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wpdbusenum.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wpdbusenum.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     87:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wpdfs.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wpdfs.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     87:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wpdmtp.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wpdmtp.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     95:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wpdshext.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wpdshext.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     99:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp WPDShServiceObj.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: WPDShServiceObj.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     95:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wpdsp.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wpdsp.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     95:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wpdwcn.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wpdwcn.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     55:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wpd_ci.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wpd_ci.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     95:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wscenter.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wscenter.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 5 -
    8:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wscmisetup.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wscmisetup.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     39:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp WSDApi.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: WSDApi.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 15 -
     84:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp WsmAuto.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: WsmAuto.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     147:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp WUDFx.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: WUDFx.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 16 -
     181:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp WUDFxUninstall.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: WUDFxUninstall.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp wzcdlg.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: wzcdlg.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 10 -
     27:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>Mofcomp xwizards.mof
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: xwizards.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 14 -
     39:
    Error code: 0x8004100ACompiler returned error 0x8004100a
    C:\Windows\System32\wbem>net start winmgmt
    System error 5 has occurred.

    Access is denied.


    C:\Windows\System32\wbem>goto End

    C:\Windows\System32\wbem>

     

     

    Wednesday, October 10, 2007 4:26 PM
  • Unfortunately it didn't work for me, I still get eh following errors from WMIDiag.vbs - anyone help?

    33373 14:59:50 (0) ** WMI QUALIFIER access operations: .................................................................................... OK.
    33374 14:59:50 (1) !! ERROR: WMI ENUMERATION operation errors reported: ................................................................... 16 ERROR(S)!
    33375 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_PerfOS_Cache', 0x80004002 - No such interface supported.
    33376 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33377 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_PerfOS_Memory', 0x80004002 - No such interface supported.
    33378 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33379 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_PerfOS_Objects', 0x80004002 - No such interface supported.
    33380 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33381 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_PerfOS_PagingFile', 0x80004002 - No such interface supported.
    33382 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33383 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_PerfOS_Processor', 0x80004002 - No such interface supported.
    33384 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33385 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_PerfOS_System', 0x80004002 - No such interface supported.
    33386 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33387 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_PerfProc_Process', 0x80004002 - No such interface supported.
    33388 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33389 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_PerfProc_Thread', 0x80004002 - No such interface supported.
    33390 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33391 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_Tcpip_ICMP', 0x80004002 - No such interface supported.
    33392 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33393 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_Tcpip_ICMPv6', 0x80004002 - No such interface supported.
    33394 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33395 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_Tcpip_IPv4', 0x80004002 - No such interface supported.
    33396 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33397 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_Tcpip_IPv6', 0x80004002 - No such interface supported.
    33398 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33399 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_Tcpip_TCPv4', 0x80004002 - No such interface supported.
    33400 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33401 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_Tcpip_TCPv6', 0x80004002 - No such interface supported.
    33402 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33403 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_Tcpip_UDPv4', 0x80004002 - No such interface supported.
    33404 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33405 14:59:50 (0) ** - Root/CIMV2, InstancesOf, 'Win32_PerfFormattedData_Tcpip_UDPv6', 0x80004002 - No such interface supported.
    33406 14:59:50 (0) **   MOF Registration: 'C:\WINDOWS\SYSTEM32\WBEM\WMIPERFINST.MOF'
    33407 14:59:50 (0) **
    33408 14:59:50 (0) ** WMI EXECQUERY operations: ........................................................................................... OK.
    33409 14:59:50 (0) ** WMI GET VALUE operations: ........................................................................................... OK.
    33410 14:59:50 (0) ** WMI WRITE operations: ............................................................................................... NOT TESTED.
    33411 14:59:50 (0) ** WMI PUT operations: ................................................................................................. NOT TESTED.
    33412 14:59:50 (0) ** WMI DELETE operations: .............................................................................................. NOT TESTED.
    33413 14:59:50 (0) ** WMI static instances retrieved: ..................................................................................... 1645.
    33414 14:59:50 (0) ** WMI dynamic instances retrieved: .................................................................................... 0.
    33415 14:59:50 (0) ** WMI instance request cancellations (to limit performance impact): ................................................... 1.
    33416 14:59:50 (0) ** ----------------------------------------------------------------------------------------------------------------------------------
    33417 14:59:50 (0) ** # of Event Log events BEFORE WMIDiag execution since the last 20 day(s):
    33418 14:59:50 (0) **   DCOM: ............................................................................................................. 0.
    33419 14:59:50 (0) **   WINMGMT: .......................................................................................................... 0.
    33420 14:59:50 (0) **   WMIADAPTER: ....................................................................................................... 0.
    33421 14:59:50 (0) **
    33422 14:59:50 (0) ** # of additional Event Log events AFTER WMIDiag execution:
    33423 14:59:50 (0) **   DCOM: ............................................................................................................. 0.
    33424 14:59:50 (0) **   WINMGMT: .......................................................................................................... 0.
    33425 14:59:50 (0) **   WMIADAPTER: ....................................................................................................... 0.
    33426 14:59:50 (0) **
    33427 14:59:50 (0) ** 16 error(s) 0x80004002 - (WBEM_UNKNOWN) This error code is external to WMI.
    33428 14:59:50 (0) ** => This error is not a WMI error. It is a DCOM error due to the following reasons:
    33429 14:59:50 (0) **    - An application has changed the COM/DCOM settings of OLE32.DLL and/or OLEAUT32.DLL.
    33430 14:59:50 (0) **    - The registry settings of COM/DCOM has been damage or wrongly modified.
    33431 14:59:50 (0) ** => To correct this situation, you must re-register the original COM/DCOM DLLs with REGSVR32.EXE
    33432 14:59:50 (0) **    i.e. 'REGSVR32.EXE OLE32.DLL'
    33433 14:59:50 (0) **    i.e. 'REGSVR32.EXE OLEAUT32.DLL'

     

     

     

    Wednesday, October 17, 2007 2:09 PM
  •  

     

    Hay, u deserve kudos ...!

     

    thanx for saving my life ....

    Wednesday, November 14, 2007 12:17 PM
  • The Script works fine on XP PRO SP2 Visual Studio 2005

    1. The script takes about 2 to 3 minuites in the middle so it does not finish really quickly don't shut the command window down until after you see end!  (It doesn't work then!)
    2. As it's next trick sql server cannot find the native windows client.  Get winnsqcli.msi ? sp from running (on Visual Studio 2005 d:\wcu\SSE\sqlexpr32.exe /x , then tell it where to expand to as it asks and "REPAIR" the native windows sql client so you don't have to reboot and spoil the installation.
    Other than that small extra trick the installation was slick.

    Then come the updates.

    1. The first time take all the express updates.
    2. Reboot.
    3. Hotfix for visual studio 2005 will fail.
    4. take all the express updates again and you will get the Visual Studio 2005 hotfix again.
    5. This time it takes.
    6. Reboot.
    Decide if you really care to want .net V3 sp1 .net V3, Login Live and silverlight? from the custom updates.  I didn't feel the need.  Your mileage will vary.....

    DONE!  (As of Feb 2008 only!)
    Friday, February 15, 2008 4:56 PM
  • C:\>fixwmi.cmd
     
    C:\>cd /d c:\temp
     
    C:\Temp>if not exist C:\WINDOWS\system32\wbem goto TryInstall
     
    C:\Temp>cd /d C:\WINDOWS\system32\wbem
     
    C:\WINDOWS\system32\wbem>net stop winmgmt
    The following services are dependent on the Windows Management Instrume
    ervice.
    Stopping the Windows Management Instrumentation service will also stop
    vices.
     
       Windows Firewall/Internet Connection Sharing (ICS)
       Access Connections Main Service
     
    Do you want to continue this operation? (Y/N) No: y
     
    The Windows Firewall/Internet Connection Sharing (ICS) service was stop
    ssfully.
     
    The Access Connections Main Service service is stopping.
    The Access Connections Main Service service was stopped successfully.
     
    The Windows Management Instrumentation service is stopping.
    The Windows Management Instrumentation service was stopped successfully
     

    C:\WINDOWS\system32\wbem>winmgmt /kill
     
    C:\WINDOWS\system32\wbem>if exist Rep_bak rd Rep_bak /s /q
     
    C:\WINDOWS\system32\wbem>rename Repository Rep_bak
     
    C:\WINDOWS\system32\wbem>for %i in (*.dll) do RegSvr32 -s %i
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s cimwin32.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s CmdEvTgProv.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s dsprov.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s esscli.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s evntrprv.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s fastprox.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s framedyn.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s fwdprov.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s krnlprov.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s mofd.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s msiprov.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s ncprov.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s ntevt.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s policman.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s provthrd.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s repdrvfs.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s smtpcons.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s snmpcl.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s snmpincl.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s snmpsmir.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s snmpstup.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s snmpthrd.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s stdprov.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s tmplprov.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s trnsprov.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s updprov.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s viewprov.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemads.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemcntl.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemcomn.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemcons.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemcore.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemdisp.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemess.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemperf.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemprox.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemsvc.dll
     
    C:\WINDOWS\system32\wbem>RegSvr32 -s wbemupgd.dll
     
    Paused at this point for 3 minuntes
     
    parsgin on these fileds takes place......lots of output
     
    and it worked
     
    BIG Question ---- WHAT THE HECK JUST happened Smile
     
     

     
    Thursday, March 13, 2008 4:34 AM
  • This is genius, it worked absolutely fine for me even in my virtual pc environment, could you give a brief overview of what was taking place there. Thanks a million .

    Friday, April 11, 2008 1:13 AM
  • Thanxs for this script.It works with ansii encoding.
    Sunday, May 4, 2008 5:29 PM
  • Script worked great - saved my arse.

     

    Friday, May 16, 2008 8:34 PM
  • Previously tried multiple XP professional reinstalls. This script worked to get SQL install to continue. Got numerous errors on the install which suggest problem with XP installation, but at least I'm past the wmi problem

    Thursday, May 22, 2008 4:49 AM
  • Hi,
    I too got the same error. I executed the batch file and that resolved my issue.
    Thanks for your support.

    Wednesday, May 28, 2008 11:37 AM
  •  I Mrus wrote:

    Hello PPl,

    I am getting this error again and again.

    The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine mymachine Error:2147749896 (0x80041008).

     

    I uninstall all version of Visual Studio 2005 just kept Microsoft .NET Framework 2.0.  Still I am getting this error when I am running SQLEXPR.exe to install the SQL Server 2005 Express.

     

    PLEASE HELP!

     

    Thank you. 

    Tuesday, June 17, 2008 4:22 PM
  • Thank you very much.

    SQL 2005 continued to install.

     

    K9

    Tuesday, June 24, 2008 9:08 PM
  • Hi bwalkertn

     

    This script worked perfectly the first time of running.

     

    Big thankyou

     

     

    BillH

    Monday, July 7, 2008 7:01 PM
  • great.. it was a soul saver.. worked like a charm..
    Sunday, July 20, 2008 6:36 PM
  • hi,

    this message is realy got helped.if like this any other information on any server like windows 2003 server,sql server,exchange server.pls send me on srini.blr@live.com.

    Tuesday, July 22, 2008 6:41 AM
  •  

    I dont know what the script did but it worked perfect on my Windows XP SP2. I can now uninstall my Sql server 2005.
    Tuesday, August 5, 2008 8:45 PM
  • Thank u ,

     

     

     

    this wos very worth ful solutaion

     

     

     

     

    Regards ,

    Nagaraj.N

     

    Monday, August 11, 2008 8:14 PM
  • Thank you, thank you thank you.

     

    This was really pissing me off as I was unable to uninstall SQL 2005. Also thanks to the other post regarding unicode versus ascii - the parser had errors until I changed to ascii.

     

    Ronan

     

    Saturday, October 11, 2008 2:52 PM
  • Worked like a champ!! Thank you!!!

     

    Wednesday, October 15, 2008 5:46 PM
  • I am using Avast-antivirus. When I copied the above text of the command file to my file and tried to save it I got a virus alert
    Friday, October 17, 2008 8:59 PM
  • Really it was so nice and it works well

    thx in advance

    and if u can give us the source of this patch ( website ) it will be so nice


    Wednesday, November 5, 2008 9:12 PM
  •  

    Sunday, November 23, 2008 10:42 PM
  • Thanks!

     

    I was getting sick of it, looking to fix that problem, bc, I couldn´t install that ***, anyway, great contribution

     

    Arigato!

     

    Tuesday, November 25, 2008 3:48 PM
  • THANK YOU!  This worked for me too.

    I was trying to install SQL Management Studio on XP SP3.  I got some dll errors on install (xolehlp.dll and msdtcprx.dll) at first.  I copied these from an XP SP2 install that I had into c:\windows\system32 (I didn't need to regsiter them).

    Then, I hit the WMI problem....I ran the fixwmi.cmd file but ran into errors (missing dll's, mofcomp not recognized...).  I had a system with a working install of SQL Management Studio, so I copied the MISSING files out of the c:\windows\wbem folder into the XP SP3 install.  After running the batch file again, it all worked!

    Thanks again.  This was a pain!
    Tuesday, February 24, 2009 4:34 PM
  • Thanks mate... It worked for me..I got this error while trying to uninstall SQL Server 2005,,,,After running this script., it worked.
    Wednesday, April 8, 2009 7:12 AM
  • Hi bwalkertn,

    I have encountered also this WMI error, I copied, pasted it to notepad and saved it as fixwmi.cmd the said script and run it, oh man, after a few seconds of running and the script exited. I tried installing MS Sql 2005 and it works...

    Thanks man...


    ~** Strong Fighting Spirit **~
    Tuesday, June 2, 2009 5:53 AM
  • I too am receiving this error.  More specifically it is preventing the installation of new instances and interferring with reporting services.

    The exact error is "Server buffers are full and data cannot be accepted" 0x80041045. 

    Simply rebooting the server will temporarily fix the issue, but this is on a x64 production PolyServe machine and the PolyServe service has a dependancy on the WINMGMT (WMI) service.  So stopping the service as needed is not an option.  I did run WMIDIAG and it shows the following:

    .1832 15:00:00 (1) !! ERROR: WMI EXECQUERY operation errors reported: ..................................................................... 19 ERROR(S)!
    .1833 15:00:00 (0) ** - Root, Select * From __EventConsumer, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1834 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_LogicalDisk WHERE FreeSpace > 10000000 AND DriveType = 3, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1835 15:00:00 (0) ** - Root/CIMv2, Select DriveType From Win32_LogicalDisk WHERE Name='C:', 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1836 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_Service, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1837 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_PageFileUsage, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1838 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_BIOS WHERE Version IS NOT NULL, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1839 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_NetworkAdapter WHERE AdapterType IS NOT NULL AND AdapterType != "Wide Area Network (WAN)" AND Description != "Packet Scheduler Miniport", 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1840 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_Processor WHERE Name IS NOT NULL, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1841 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_DiskDrive, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1842 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_ComputerSystem, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1843 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_DiskPartition, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1844 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_LogicalDisk WHERE Description != "Network Connection", 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1845 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_VideoController, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1846 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_USBController, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1847 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_DesktopMonitor, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1848 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_PointingDevice WHERE Status = "OK", 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1849 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_Keyboard, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1850 15:00:00 (0) ** - Root/CIMv2, Select * From Win32_SystemDriver WHERE StartMode != "Disabled", 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.
    .1851 15:00:00 (0) ** - Root/WMI, Select * From MSNdis_MediaConnectStatus, 0x80041045 - (WBEM_E_SERVER_TOO_BUSY) Call to IWbemObjectSink::Indicate has failed. The provider can refire the event.

    Is there a way too fix this that doesn't involve shutting down the WMI service?
     
    Thursday, June 4, 2009 12:16 AM
  • The C:\WINDOWS\system32\wbem>RegSvr32 -s wbemupgd.dll command will actually shutdown the WINMGMT (WMI) service as well as anything that depends on the service.

    Thursday, June 4, 2009 12:20 AM
  • Thanks a lot for the script.
    It worked for me. 
    NB : For others :- chk the appropriate dll s and registry entry before u run the script.
    Wednesday, August 5, 2009 7:37 AM
  • Thanks!  This worked for a test VM I was setting up. I received the error after I had uninstalled applications and SQL to start with a clean install!
    D
    Wednesday, September 23, 2009 11:30 PM
  • Thanks for the batch my WMI error has been fixed.. It really helps alot!!!
    Wednesday, December 2, 2009 10:00 AM
  • SIMPLEST 40 MINUTES SOLUTIOIN: Well, the same problem cost 2 days for me. WMIFIX codes dint work with me. THE SIMPLEST SOLUTION I FOUND IS.. JUST GET YOUR WINXP INSTALLATION CD(I HAD WINXP SP3) REPAIR THE WINDOWS INSTALLATION (NOT THE FIRST REPAIR OPTION THRU COMMAND PROMT..THE ONE THAT COMES AFTER YOU DECIDE TO INSTALL WINXP)   IT WILL TAKE 35MINS, AND U R DONE, THE SYSTEM IS READY , TAKE OFF NOW:)

                      AGAIN, U MIGHT FIND ERROR LIKE  "An installation package for the product Microsoft SQL Native Client cannot be found. Try the installation again using a valid copy of the installation package 'sqlncli.msi'." PROBLEM. TO FIX THAT, JUST GO TO ADD REMOVE PROGRAMS, UNINTALL "SQL Native Client ", AND DONT WASTE A SINGLE SECOND, GO ON WITH YOUR SQL INSTALLATION. IF MY SUGGN HELPED YOU, PLEASE RESPOND.
    Saturday, December 19, 2009 2:47 PM
  • Great script, it help me a lot. Thanx
    Wednesday, January 6, 2010 11:55 AM
  • Thanks for the script, this worked beatifully on the first try!  Cheers to you!
    Tuesday, February 9, 2010 5:11 PM
  • I found these commands in a wmirebuild.bat file we have. Will this do the same thing that fixwmi.cmd does?

    winmgmt/clearadap
    winmgmt/kill
    winmgmt/unregserver
    winmgmt/regserver

    Tuesday, March 2, 2010 7:38 PM
  • The FIXWMI.CMD works great (see top of the thread). Thanks a lot

    Wednesday, March 31, 2010 12:52 PM
  • Hello PPl,

    I am getting this error again and again.

    The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine mymachine Error:2147749896 (0x80041008).

     

    I uninstall all version of Visual Studio 2005 just kept Microsoft .NET Framework 2.0.  Still I am getting this error when I am running SQLEXPR.exe to install the SQL Server 2005 Express.

     

    PLEASE HELP!

     

    Thank you. 


    Wednesday, April 14, 2010 12:44 AM
  • I ran it and it worked like a champto fix the issue

     

    Grats!

    Wednesday, April 28, 2010 4:07 AM
  • Nuff Respect, u a de big man bout de place. Now I can go home arly for once.
    Tuesday, May 11, 2010 1:32 AM
  • talk about a wait... not sure if it is going to work... ut I am waiting 4minutes so far and waiting.
    Tuesday, May 18, 2010 8:36 PM
  • the script  FIXWMI.CMD resolved my issue of 

     

    The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine Error:2147749896 (0×80041008).


    Sivaprasad S http://sivasql.blogspot.com Please click the Mark as Answer button if a post solves your problem!
    Thursday, May 20, 2010 2:05 AM
  • me sirvio mucho esto. gracias

    Sunday, July 18, 2010 11:16 PM
  • Thanks so much for posting this!  It worked for me- and saved me hours of hours of work.... well, that over what I already spent.

     

    Thanks again!

    Friday, July 30, 2010 5:04 PM
  • Hello, I have the same problem. and I tried the patch, and I have the message as below:

    An error occurred while opening the namespace for object 1 defined on lines 5 -
    5:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp fconprov.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: fconprov.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 3 -
    3:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp fevprov.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: fevprov.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 4 -
    4:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp krnlprov.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: krnlprov.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp licwmi.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: licwmi.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 4 -
    4:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp msi.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: msi.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp ncprov.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: ncprov.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 4 -
    4:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp ntevt.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: ntevt.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp policman.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: policman.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp regevent.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: regevent.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 5 -
    5:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp rsop.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: rsop.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 4 -
    4:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp scrcons.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: scrcons.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 3 -
    3:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp secrcw32.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: secrcw32.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp smtpcons.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: smtpcons.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 3 -
    3:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp tmplprov.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: tmplprov.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 3 -
    3:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp trnsprov.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: trnsprov.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 3 -
    3:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp tscfgwmi.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: tscfgwmi.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 4 -
    4:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp updprov.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: updprov.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 3 -
    3:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp wbemcons.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: wbemcons.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 3 -
    3:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp wmi.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: wmi.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp wmipcima.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: wmipcima.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp wmipdskq.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: wmipdskq.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp wmipicmp.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: wmipicmp.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp wmipiprt.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: wmipiprt.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp wmipjobj.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: wmipjobj.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp wmipsess.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: wmipsess.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 6 -
    6:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>Mofcomp wmitimep.mfl
    Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.5512
    Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
    Parsing MOF file: wmitimep.mfl
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while opening the namespace for object 1 defined on lines 4 -
    4:
    Error Number: 0x80070424, Facility: Win32
    Description: The specified service does not exist as an installed service.
    Compiler returned error 0x80070424
    C:\WINDOWS\system32\wbem>net start winmgmt
    The service name is invalid.

    More help is available by typing NET HELPMSG 2185.


    C:\WINDOWS\system32\wbem>goto End
    C:\WINDOWS\system32\wbem>
    C:\WINDOWS\system32\wbem>

    Still not able to install the SQL

     

    Monday, August 2, 2010 8:16 AM
  • thank u thank you thank you so much for this help..
    Sunday, January 2, 2011 7:37 AM
  • Awesome!  Worked like a charm!  Thank you!
    Monday, February 7, 2011 10:41 PM
  • Chalk another another satisfied user of the script.  Only thing I had to do was reboot first in order to get WMI to end correctly during the script; after the reboot it was smooth sailing, and then AOK installing SSE 2005.
    Monday, February 14, 2011 5:44 PM
  • Fantastic! This worked. I was so frustrated after hours of trying and getting errors, until I used this script.
    Tuesday, March 15, 2011 10:12 PM
  • Fixed a very sticky issue I had using Vista and SQL Server Express 2008.  THANK YOU!!!
    Friday, March 25, 2011 6:58 PM
  •  

    I had a problem in WMI Control where Win32_Processor  and Win32_OperatingSystem were "Access denied".  Using the suggestion for the link SQL Server System Configuration Checker, i.e.,

    http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/b924e835-b835-4883-8323-8b3600dfb0c1/

    I found the following from greggnlisa:

     - Goto the start menu and LOCATE your command prompt (should be under Accessories).
    - Right click on it and select "Run as Administrator."
    - At the command prompt, type the following: net localgroup "Administrators" "NT Authority\Service" /add
    - And press Enter.

    - Reboot and you are done.

    I did not try the lengthy solutions proposed here because I noticed that they gave limited success, and they were time-consuming.  This short solution might be worth trying before attempting the longer solutions.


    jameshnelson2003@yahoo.com
    Thursday, June 23, 2011 11:43 PM
  • Worked like a charm. Less than 5 minutes.

     

    Thanks

    Thursday, June 30, 2011 5:39 PM
  • Thanks a million... The script worked great. You saved my life...
    Monday, February 20, 2012 8:04 PM
  • Thanks....

    Script Works Fine!

    Sunday, April 8, 2012 9:09 PM
  • Thank you very much! 

    FIXWMI.CMD works fine!

    Problem solved with your script! 

    Friday, April 20, 2012 2:02 PM