Search

Wednesday, August 7, 2013

How do I fix "Cannot connect to WMI Provider" error?

The following article explains how to fix the following error message:

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 Namespace.


This error is caused when the .mof files are damaged during the MS SQL Server 2005 installation. The error will typically occur when trying to run the MS SQL 2005 Configuration Manager. This error can be resolved by running a command line script.

To fix this error, please follow these steps:

  1. Log into your server through Remote Desktop Connection (instructions for connecting to your server through RDC can be found here).
  2. From the Start menu, select Run.
  3. Type cmd and click OK.
  4. Change to the directory c:\Program Files\Microsoft SQL Server\90\Shared\
  5. Type mofcomp "C:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.mof" and press enter.
Refer MS KB article: http://support.microsoft.com/kb/956013

You should no longer receive the above error message.