SQL Server: fix the Configuration Manager WMI error with mofcomp
Recompile the SQL Server WMI provider MOF file with mofcomp.
When SQL Server Configuration Manager shows a WMI error (the SQL Server WMI provider is missing or corrupted), you can recompile the provider's MOF file with mofcomp.
mofcomp "%programfiles(x86)%\Microsoft SQL Server\100\shared\sqlmgmproviderxpsp2up.mof"
mofcomp compiles and registers the WMI class definitions from the MOF file into the WMI repository. The 100 folder corresponds to SQL Server 2008 / 2008 R2; adjust the number for your version. Run it from an elevated (administrator) prompt.