SQL Server Configuration Manager – Cannot connect to WMI provider – Invalid class [0x80041010]
-
7. května 2012 20:24
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
Všechny reakce
-
8. května 2012 2:23
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.
Javier Villegas | @javier_vill | http://sql-javier-villegas.blogspot.com/
Please click "Propose As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you -
8. května 2012 11:54
Thank you for the reply, I searched mfcomp in all over the computer but did not find any thing
-
9. května 2012 6:51Moderátor
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
http://blogs.msdn.com/b/echarran/archive/2006/01/03/509061.aspx
http://msmvps.com/blogs/martinpoon/archive/2009/11/27/sql-server-configuration-manager-cannot-connect-to-wmi-provider-invalid-class-0x80041010.aspx.
Thanks,
MaggiePlease remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
-
10. května 2012 13:19hi, 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
-
16. května 2012 7:20Moderátor
Hi sql393,
Follow these steps to display hidden files and folders.
- Open Folder Options by clicking the Start button, clicking Control Panel, clicking Appearance and Personalization, and then clicking Folder Options.
- Click the View tab.
- 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.
Thanks,
MaggiePlease remember to mark the replies as answers if they help and unmark them if they provide no help. This can be beneficial to other community members reading the thread.
- Označen jako odpověď Maggie LuoMicrosoft Contingent Staff, Moderator 7. června 2012 7:36
-
30. května 2012 19:14
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
- Upravený Fernando Lugão VeltemMVP 30. května 2012 19:25
-
30. července 2012 14:48Thank you! All worked!
-
29. září 2012 12:23
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 :-)
Thanks
Barthélémy NOEL-PIERRE
-
21. prosince 2012 17:54
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
JQ
-
31. ledna 2013 18:44
I'm running Windows 7 Enterprise and SQL 2012 Eval.
This solution worked for me:
I found mofcomp way over here:
C:\Windows\winsxs\wow64_microsoft-windows-wmi-core_31bf3856ad364e35_6.1.7601.17514_none_21ceb2d66a98ec2f
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.
Just a Paid Search Marketing professional way out-of-bounds technology-wise, trying to make these awesome data tools work wonders. http://www.StoneTemple.com
-
21. května 2013 7:31
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...
Done!