Following error dialog pops up today, when I tried connecting to SQL Server Configuration Manager on my SQL Server 2008 production server:
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]
This error appears to happen when .mof files (Managed Object Format (MOF)) don’t get installed and registered correctly during set-up. To resolve this issue, I executed the following mofcomp command in command prompt to re-register the *.mof files:
mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
Note: mofcomp.exe is responsible for registering and storing the data associated with .mof files
This error disappeared after the MOF file has been successfully parsed and I can now access SQL Server Configuration Manager without any problem ;0).
Excellent topic yaar, i solved my proplem!!!
thanks
sarva
LikeLike
Thanks for the solution!
It worked for me too… but I used it for SQL Server 2012. In this case the folder in the path ist “110” not “100” anymore.
mofcomp.exe “C:\Program Files (x86)\Microsoft SQL Server\110\Shared\sqlmgmproviderxpsp2up.mof”
cheers
Andy
LikeLiked by 1 person
Excellent! Another reason is a uninstall of a SQL Server Product:
http://support.microsoft.com/kb/956013/en
LikeLike
did not work for me as I still get an error “Invalid class [0x80041010]”
LikeLike
Great post it worked like a charm,
Thanks, Andy for your comment.it helped me alot.
LikeLike
good its workd for me…
LikeLike
It worked for me thanks!
LikeLike
Sometimes issues mofcomp.exe against CMD goes wrong returning this message:
“‘mofcomp’ is not recognized as an internal or external command
Workaround:
Open CMD as Administrator, and follow the steps above:
1) cd c:\windows\system32\wbem
2) mofcomp “C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof”.
The number 100 can be 90 or 110 (if SSCM Shared Tools come from 2012)
LikeLike
congratulation for the tip, resolved my problem …
LikeLike
this resolved my issue. thanks for the fix!
LikeLike
thanks resolved my issue
LikeLike
Excellent topic it solved my problem, Thanks.
LikeLike
Thanks! This helped me. I did need to run the command as Administrator.
LikeLike
Still cannot solve,Thought the mof file is parsed.
LikeLike
Thank you. I hit this error on one of our servers today, and it was repaired in a jiffy.
LikeLike
Thanks, that worked.
LikeLike
Still I am getting error. After MOF file has been successfully pared…:(.
Please help me….Tks, VJ
LikeLike
It works. Thank you.
LikeLike
Worked except I needed
mofcomp.exe “C:\Program Files (x86)\Microsoft SQL Server\120\Shared\sqlmgmproviderxpsp2up.mof”
Thanks
Terry Clancy
ClanceZ
LikeLike
Still works as expected.
Thanks 🙂
LikeLike