Error When Opening SQL Server 2017 Configuration Manager([0x8004100e])

When I tried to open SQL Server 2017 Configuration Manager, I received an error like the following. My problem is solved when I follow the steps below.

Error

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 namespace [0x8004100e]

Solution

Run the command line as Administrator and paste the command below.

Note: Change paths in the script according to your SQL Server installation.

When we run it should return a result like the following. You can now run Configuration Manager.