September
26
Windows: The WMI provider name space cannot be found on server
“The WMI provider name space cannot be found on server” error is due to the class identification modules being corrupted. To fix this the MOF files need to be recompiled.
Save the following script to a batch file and then run it. The process takes about 10 minutes:
net stop winmgmt /y c: cd %systemroot%system32wbem rd /S /Q repository regsvr32 /s %systemroot%system32scecli.dll regsvr32 /s %systemroot%system32userenv.dll mofcomp cimwin32.mof mofcomp cimwin32.mfl mofcomp rsop.mof mofcomp rsop.mfl for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s for /f %%s in ('dir /b *.mof') do mofcomp %%s for /f %%s in ('dir /b *.mfl') do mofcomp %%s net start ccmexec cd %programfiles%citrixsystem32citrixwmi for /f %%s in ('dir /b *.mof *.mfl') do mofcomp %%s