CcmSetup failed with error code 0x80041010

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.

Method 1:

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

Method 2:

Save and run the following script in a command prompt:

Net Stop winmgmt
C:
CD%SystemRoot%\System32\wbem
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
scrcons.exe /regserver
unsecapp.exe /regserver
winmgmt.exe /regserver
wmiadap.exe /regserver
wmiapsrv.exe /regserver
wmiprvse.exe /regserver
mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in (‘dir /b *.mof’) do mofcomp %%s
for /f %%s in (‘dir /b *.mfl’) do mofcomp %%s
ECHO.
ECHO DONE, A system restart is recommended…
ECHO.
Pause

10 Comments

  1. Edga

    Helped.

    Thank you for sharing!

    Reply
  2. David

    Thanks this Worked!

    Reply
  3. Edwin

    Thank you for the solution. I used Method 1 and it worked perfectly.

    Reply
  4. Bob

    Thank You So much

    Reply
  5. Bob

    Thank You

    Reply
  6. James

    Worked like a charm the first try! Thank you very much!

    Reply
  7. mtran

    Thank you much! Method 1 did the trick for me!

    Reply
  8. Дмитрий Масалов

    Thanks!!!

    Reply
  9. Tim

    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!

    Cheers,
    Tim

    Reply
  10. Slem

    Thx !! , did the trick

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *