none
SQL Server Configuration Manager – Cannot connect to WMI provider – Invalid class [0x80041010]

    Question

  • Getting this Error when i starts SQL sevrer Configuration Manager on SQL server 2008 R2..mof file located in right folder but it didnt nowrk.

    Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. Invalid class [0x80041010]

    Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 and later servers with SQL Server Configuration Manager. Invalid class [0x80041010]

    If any one has solution get back to me here ASAP

    Thanks

    Thursday, March 31, 2011 11:02 PM

Answers

  • Has an instance been unistalled? (Not nessesarily the one you are connecting too)? If so, the workaround is to type the following at the command prompt
    mofcomp "%programfiles(x86)%\Microsoft\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
    Please see this kb article for further info http://support.microsoft.com/kb/956013

    Peter Carter-Greenan http://sqlserverdownanddirty.blogspot.com/
    Friday, April 1, 2011 7:00 PM
  • Type .exe  in below command  and worked for me

    mofcomp.exe "C:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof"



    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah

    • Marked as answer by -kit Monday, June 16, 2014 9:06 PM
    Monday, June 16, 2014 9:05 PM

All replies

  • Has an instance been unistalled? (Not nessesarily the one you are connecting too)? If so, the workaround is to type the following at the command prompt
    mofcomp "%programfiles(x86)%\Microsoft\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
    Please see this kb article for further info http://support.microsoft.com/kb/956013

    Peter Carter-Greenan http://sqlserverdownanddirty.blogspot.com/
    Friday, April 1, 2011 7:00 PM
  • This link explains the same problem - http://blogs.msdn.com/b/echarran/archive/2006/01/03/509061.aspx

    Thanks, Leks
    Monday, April 11, 2011 7:34 AM
  • Thanks Pete. This solution worked  for me.

    Before executing the command make sure that the mof file is present in the location. For servers the mof file name may not be the same as mentioned here.

    For executing the command make sure that you have to log in as an administrator.

    Friday, July 13, 2012 10:45 AM
  • This error comes when there is registry corruption. check your register or raise case with MS.

    For me reboot had fixed the issue temorarily, however it came again and OS team had raised case with MS.

    Charanjit


    Charanjit Jagdev

    Tuesday, July 24, 2012 1:03 PM
  • For windows XP 32 bit, please execute the below line:

    mofcomp "C:\Program Files\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"

    Friday, July 27, 2012 9:00 PM
  • I had the same issue with sql2012.  The answer works, I had to point to the 2012 file location (110 instead of 100).  here's another article: http://msmvps.com/blogs/martinpoon/archive/2009/11/27/sql-server-configuration-manager-cannot-connect-to-wmi-provider-invalid-class-0x80041010.aspx

    • Proposed as answer by Spivonious Thursday, July 25, 2013 4:33 PM
    Tuesday, August 7, 2012 4:09 PM
  • For me it worked the above solution. The extra step I had to do was fix first the corrupted WMI Reposiotry.

    Fix for corrupted WMI Reposiotry.

    The folder to rename is

    For Windows XP (Need Admin permissions)

    Enter the following DOS Commands From a DOS Command Prompt Window using your EF Creds:

       NET STOP WINMGMT 

    Rename the folder:    %windir%\System32\Wbem\Repository.

    For example:     %windir%\System32\Wbem\Repository_bad

    RUNDLL32 WBEMUPGD, UPGRADEREPOSITORY 

    NET START WINMGMT 

        EXIT

    Re-Registering the WMI components

    The .DLL and .EXE files used by WMI are located in: 

        %windir%\system32\wbem.

    You might need to re-register all the .DLL and .EXE files in this Directory.

    CD  /d   %windir%\system32\wbem

                    FOR  %i  IN  (*.dll)  DO  RegSvr32  -s  %i

                    FOR  %i  IN  (*.exe) DO  %i  /RegServer

    Tuesday, December 4, 2012 2:58 PM
  • Has an instance been unistalled? (Not nessesarily the one you are connecting too)? If so, the workaround is to type the following at the command prompt
    mofcomp "%programfiles(x86)%\Microsoft\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
    Please see this kb article for further info http://support.microsoft.com/kb/956013

    Peter Carter-Greenan http://sqlserverdownanddirty.blogspot.com/

    Pete,  this worked for me, too.
    Thursday, March 7, 2013 8:00 PM
  • The above steps did not work for me on Server 2008 R2 as RUNDLL32 WBEMUPGD, UPGRADEREPOSITORY  failed.

    After running

    CD  /d   %windir%\system32\wbem

    I ran WMIMGMT /resetrepository and then WMIMGMT /salvagerepository (not sure if this last step was necessary, but it seemed prudent).

    Then I was able to install SQL 2005 32 bit on the server without error.

    Friday, January 10, 2014 3:12 PM
  • Thank you a LOT Pete ! My virtual machine with SQL Server installed crashed, and after I reboot it, I encountered the same issue as the original post.

    Your workaround solved the issue for me.

    Thx again :)

    Monday, February 24, 2014 2:08 PM
  • Hi,

    Im currently having difficulty running the following:

    mofcomp "C:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof"

    Im getting the following result:

    C:\Users\Flores Tackle>mofcomp "C:\Program Files\Microsoft SQL Server\90\Shared\
    sqlmgmproviderxpsp2up.mof"
    Microsoft (R) MOF Compiler Version 6.0.6000.16386
    Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
    Parsing MOF file: C:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmprovider
    xpsp2up.mof
    MOF file has been successfully parsed
    Storing data in the repository...
    An error occurred while processing item 10 defined on lines 73 - 79 in file C:\P
    rogram Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof:
    Error Number: 0x80070005, Facility: Win32
    Description: Access is denied.
    Compiler returned error 0x80070005

    I have tried every method I can think of to ensure I have the correct admin access and im running command prompt the correct way however nothing seems to work. Im currently running windows vista 32bit home premium.

    Any help would be much appreciated.

    Thanks



    • Edited by z-aziz Monday, April 28, 2014 9:19 AM
    Monday, April 28, 2014 9:15 AM
  • Type .exe  in below command  and worked for me

    mofcomp.exe "C:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof"



    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach A.Shah

    • Marked as answer by -kit Monday, June 16, 2014 9:06 PM
    Monday, June 16, 2014 9:05 PM
  • Hi I had same issue 'Description: Access is denied.' and I ran the Command Prompt as an Administrator, then it worked.
    Thursday, July 3, 2014 10:39 AM
  • What if the file sqlmgmproviderxpsp2up.mof doesn't exist?
    Thursday, August 7, 2014 7:56 PM
  • I have the code to try and fix the error but it says the file doesn't exist. But i have physically checked and its there. Please assist
    Monday, April 13, 2015 10:51 AM