If you see this error in your ccmsetup log file it may point to WMI classes not properly registered or corrupt. There are two methods that you can try to resolve this.
Open a command prompt in Administrator mode and change to folder c:\windows\system32\wbem.
Run the following command:
dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %s in (moflist.txt) do mofcomp %s
Save and run the following script in a command prompt:
Net Stop winmgmt
RD /S /Q repository
regsvr32 /s %SystemRoot%\system32\scecli.dll
regsvr32 /s %SystemRoot%\system32\userenv.dll
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
ECHO DONE, A system restart is recommended…
Thank you much! Method 1 worked for me!
Thank you so much. It’s work!
Method 1 Worked!!! Cheers
Thank you for sharing!
Thanks this Worked!
Thank you for the solution. I used Method 1 and it worked perfectly.
Thank You So much
Worked like a charm the first try! Thank you very much!
Thank you much! Method 1 did the trick for me!
Thank you for this post. The first method worked for a client’s machine that I was reluctant to reimage due to the sheer amount of research data they stored on the machine, along with the configurations for their scientific equipment. This has made my day!
Thx !! , did the trick