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

look at this post am getting the same


but when I tried the solution given there , It is not working

the error I am getting is mofcomp is not recognized as internal or external command

I tried in  C:\program files\Microsoft sql server\90\shared  and in Windows\system32

I am getting the same error

May 7th, 2012 11:24pm

I had the same error and it the proposed solution fixed the problem.

It was hard to find the executable so I realize that mofcomp was not inside the suggested folder. you should  search for mofcomp in all the conputer.

Free Windows Admin Tool Kit Click here and download it now
May 8th, 2012 5:23am

Thank you for the reply, I searched mfcomp in all over the computer but did not find any thing

May 8th, 2012 2:54pm

Hi sql393,

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

The solution is to go to a command prompt and then run mofcomp.
 C:\Program Files\Microsoft SQL Server\90\Shared>mofcomp "C:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof"

For more information, please refer to


Free Windows Admin Tool Kit Click here and download it now
May 9th, 2012 9:51am

hi, Maggie Luo

Thank you for the reply

Problem here is  THERE IS  NO MOFCOMP in the :\Program Files\Microsoft SQL Server\90\Shared directory when try it says

mofcomp is not recognized as internal or external command, I searched my entire computer I did not find any thing called mofcomp , now the question is can I download this file from some where

May 10th, 2012 4:19pm

Hi sql393,

Follow these steps to display hidden files and folders.

  1. Open Folder Options by clicking the Start button, clicking Control Panel, clicking Appearance and Personalization, and then clicking Folder Options.
  2. Click the View tab.
  3. Under Advanced settings, click Show hidden files and folders, and then click OK.

You need to find sqlmgmproviderxpsp2up.mof in C:\Program Files\Microsoft SQL Server\90\Shared\ or C:\Program Files(X86)\Microsoft SQL Server\90\Shared\. Have you found it? Then you could run the command.


Free Windows Admin Tool Kit Click here and download it now
May 16th, 2012 10:20am

Work like a charme for me.

If you are using the 64 bits version the file is locaded in

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

Thanks Maggie

May 30th, 2012 10:14pm

Thank you! All worked!
Free Windows Admin Tool Kit Click here and download it now
July 30th, 2012 5:48pm

Thank you !

I'm on Windows 2008 R2 64 bits.

I first find the file "sqlmgmproviderxpsp2up.mof" in the folder "C:\Program Files (x86)\Microsoft SQL Server\100\Shared", i then execute then command and it DID'NT work !!!

Then after a global search on the explorer, i finally found that i've this file in 2 folders :

- "C:\Program Files (x86)\Microsoft SQL Server\100\Shared"

- "C:\Program Files (x86)\Microsoft SQL Server\110\Shared"

Obviously, cause I have SQL Server 2008 r2 and SQL Server 2012 too :-)


September 29th, 2012 3:23pm

Thanks to this article I was able to fix my issue however it took me some extra time cause I had to look for files and stuff like that so I want to ssummarize what I did for my SQL 2008 R2 

-Open CMD run as Administrator

-navigate to C:\Program Files\Microsoft SQL Server\90\Shared>

- RUN mofcomp "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"

hope it helps


Free Windows Admin Tool Kit Click here and download it now
December 21st, 2012 8:54pm

I'm running Windows 7 Enterprise and SQL 2012 Eval.

This solution worked for me:

I found mofcomp way over here:


I found .mof here:

C:\Program Files (x86)\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof

So the following command solved this for me:

C:\Windows\winsxs\wow64_microsoft-windows-wmi-core_31bf3856ad364e35_6.1.7601.17514_none_21ceb2d66a98ec2f\mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof"

good luck.

January 31st, 2013 9:44pm

For Sql Server 2012 on windows server 2012:


C:\Program Files (x86)\Microsoft SQL Server\110\Shared>mofcomp sqlmgmproviderxpsp2up.mof


Microsoft (R) MOF Compiler Version 6.2.9200.16384
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: sqlmgmproviderxpsp2up.mof
MOF file has been successfully parsed
Storing data in the repository...

Free Windows Admin Tool Kit Click here and download it now
May 21st, 2013 10:31am

I found mofcomp.exe at %SYSTEMROOT%:\WINDOWS\System32\wbem\

July 20th, 2013 5:16am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics