SQL Server 2012 cannot connect to the WMI provider solution

Time:2021-10-27

Today, a colleague encountered the following error when starting the SQL Server 2012 configuration manager of his working machine:

Unable to connect to WMI provider. You do not have permission or the server cannot be accessed. Note that you can only use SQL Server Configuration Manager to manage SQL Server 2005 servers. 
The specified module could not be found. [0x80041010]
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]

I searched the Internet and found that the following methods are feasible:

Open CMD in “start”, enter the command mofcomp + space, find the file sqlmgmproviderxpsp2up.mof, drag the file to the back of the command, and press enter.