WMIC compiler error

Posted on 2010-04-08
Medium Priority
Last Modified: 2013-08-28
When we try to run WMIC on a particular computer we get the error ""Please wait while UMIC compiles updated MOF files. Parsing MoF File: C:\windows\system32\wbem\Cli.mof (Phase Error = 3) Compiler returned error 0x80041001"

here is the script:

"wmic /output:"%userprofile%\Desktop\software.txt" product get Name, Version"

How can we get this to work?   We have tried nothing but re-running the command so far.

User is a Power User but not an admin.

Question by:CharlesH
  • 4
  • 3
LVL 31

Expert Comment

ID: 30128941
i assume the wmi on this client is corrupt. See the solution here:

Author Comment

ID: 30244286
The solutions in the article did not work.  We are continuing to investivate
LVL 31

Accepted Solution

merowinger earned 2000 total points
ID: 30494022
Please try the following:

Any application that uses WMI may return the following error code when attempting to connect to WMI / WBEM.


Error 0x80041001 WBEM_E_FAILED Call failed.



The WMI installation has become corrupted and is no longer functioning properly.



Verify that the WMI service is no longer functioning using the Wbemtest.exe utility or WMIDiag.vbs script, then reinstall WMI.  Once WMI is reinstalled, reinstall any additional WMI namespaces from 3rd party applications (like Microsoft Host Integration Server).


Testing WMI Connection with WbemTest

1)      Run %SystemRoot%\System32\Wbem\WbemTest.exe

2)      Click Connect

3)      Click Connect

a.       The 0x80041001 error should occur during connect


Testing with the WMIDiag.vbs script.

1)      Download the WMIDiag script from the Microsoft website

2)      Cscript WMIDiag.vbs

a.       The 0x80041001 error should occur.


Stopping the WMI Service

1)      Using Computer Manager

a.       Goto Services

b.      Select “Windows Management Instrumentation”

c.       Right Click

d.      Select Stop

2)      From the command line

a.       Type: Net Stop winmgmt


Reinstalling WMI

1)      Using Windows Explorer

a.       Goto %SystemRoot%\inf

b.      Right Click wbemoc.inf

c.       Select Install

2)      From the command line

a.       Type: rundll32.exe setupapi,InstallHinfSection WBEM 132 %SystemRoot%\inf\wbemoc.inf


Start the WMI Service

1)      Using Computer Manager

a.       Goto Services

b.      Select “Windows Management Instrumentation”

c.       Right Click

d.      Select Start

2)      From the command line

a.       Type: Net Start winmgmt



Test with Wbemtest.exe or WMIDiag.vbs again and see if that resolves the problem.


Reinstall any 3rd party WMI namespaces (like Microsoft Host Integration Server)

1)      Locate the *.mof files

2)      For each MOF file execute the following

a.       Mofcomp filename.mof

3)      Locate any WMI related DLL’s

4)      For each WMI DLL execute the following

a.       Regsvr32 /s filename.dll

5)      Stop and Start the WMI Service.


Example: Host Integration Server MOF and DLL files

Until the following MOF and DLLs are reinstalled the following Error may occur accessing the HIS Namespace.



Namespace specified cannot be found.


This is because reinstalling WMI has removed the 3rd party Namespace.

1)      Located in C:\Program Files\Host Integration Server\System

a.       Wmicomti.dll

b.      Wmihis.dll

c.       Wmisna.dll

d.      Wmisnastatus.dll

e.       Wmisnatrace.dll

f.        Wmicomti.mof

g.       Wmihis.mof

h.       Wmisna.mof

i.         Wmisnastatus.mof

j.        Wmisnatrace.mof
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.


Author Comment

ID: 30846541
I will try this.
LVL 31

Expert Comment

ID: 32985138
Any update?

Author Comment

ID: 32988786
I have not had the error again since you posted your response.  This software is something we run only when swapping users.

I will get on my techs about letting me know as soon as it happens again.

Author Closing Comment

ID: 33055550
Ihave stil not had this error re-occur but merrowinger did a lot of good work on this so I am awarding him full points.

Expert Comment

ID: 39446886
Helped me - thanks.

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
From store locators to asset tracking and route optimization, learn how leading companies are using Google Maps APIs throughout the customer journey to increase checkout conversions, boost user engagement, and optimize order fulfillment. Powered …

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question