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


Copyright 2021. All rights reserved.

Posted September 26, 2011 by Timothy Conrad in category "Windows

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. Securely email me using - PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B