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

13 Comments

  1. Syed Mujahid

    Thank you much! Method 1 worked for me!

    Reply
  2. Safwan

    Thank you so much. It’s work!

    Reply
  3. Del

    Method 1 Worked!!! Cheers

    Reply
  4. Edga

    Helped.

    Thank you for sharing!

    Reply
  5. David

    Thanks this Worked!

    Reply
  6. Edwin

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

    Reply
  7. Bob

    Thank You So much

    Reply
  8. Bob

    Thank You

    Reply
  9. James

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

    Reply
  10. mtran

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

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

    Thanks!!!

    Reply
  12. 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
  13. Slem

    Thx !! , did the trick

    Reply

Leave a Comment

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