Error In Spectrum - SQLServerManager10.msc >> "Cannot connect to WMI provider. You do not have permission or the server is unreachable."

Error In Spectrum - SQLServerManager10.msc >> "Cannot connect to WMI provider. You do not have permission or the server is unreachable."

If you receive the error "Cannot connect to WMI provider. You do not have permission or the server is unreachable." when attempting to launch the SQL Configuration Manager :

            cannot_connect_WMI.png 

SQL Server Configuration Manager use Window Management Instrumentation (WMI) to view and change some server settings. When connecting to servers, SQL Server Configuration Manager uses WMI to obtain the status of the SQL Server (MSSQLSERVER) and SQL Server Agent services. This problem occurs because the WMI provider is removed when you uninstall an instance of SQL Server.

Solution:
To resolve the error, you need to register the sqlmgmproviderxpsp2up.mof file on your system, to do so please follow the instructions provided here:

Step 1: 
Open  Command prompt (Run as Administrator) .

Step 2:
Type the following command here

cd.. >> Means go to Back Directory
cd C:\Program Files (x86)\Microsoft SQL Server\100\Shared >> Open this Path Directory

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

            



Step 3 :
In case sqlmgmproviderxpsp2up.mof is available at some other path then locate the file from that location only.
            
            

Press  Enter , it will display message  -

Microsoft (R) MOF Compiler Version 10.0.19041.1
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof
MOF file has been successfully parsed
Storing data in the repository...
Done!


This will help to resolve the issue
‚Äč
If the same issue occur, You need to contact your System engineer to get it resolved.