I received one ticket depicting for below issue for one of our server, I was not able to install patches through SCCM. "Can't connect to namespace in WBEMTest or WMI Control in Computer Mgmt (Properties state invalid namespace) - Please get WMI working so SCCM client can install"
After lots of of troubleshoot Logged a case with Microsoft and they gave me below suggestion. and Wmi started working again.
Re-register all the WMI DLLs and MOF files and rebuild the repository.
for /f %s in ('dir /b *.dll') do regsvr32 /s %s
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s