When troubleshooting WMI on SMS/SCCM clients, I’ve frequently used the following command to attempt a repair of the WMI repository. I don’t recall where I found it (several years ago), but I also don’t want to ever forget it!
- Open a command prompt
- Change to directory C:\Windows\system32\wbem\
- Run: for /f %s in (‘dir /b *.mof *.mfl’) do mofcomp %s