Powered By Blogger

Wednesday, August 6, 2014

Resolved: Cannot connect to WMI provider. You do not have permission or the server is unreachable

Open cmd as administrator:
Run MOF Compiler by passing below parameter as:

mofcomp "%programfiles%\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"


what is MOFcomp: 
The Managed Object Format (MOF) compiler parses a file containing MOF statements and adds the classes and class instances defined in the file to the WMI repository. MOF files are usually automatically compiled during the installation of the systems with which they are provided, but you can also compile MOF files by using this tool.

Microsoft SQL Server 2012       110
Microsoft SQL Server 2008 R2  100
Microsoft SQL Server 2008       100
Microsoft SQL Server 2005       90

Open services.msc
Restart Windows management Instrumentation WMI Service



No comments: