An Error Occurred While Creating Object – MofComp

IT Support Forum Forums Windows Windows Server 2012 Troubleshooting An Error Occurred While Creating Object – MofComp

Viewing 0 reply threads
  • Author
    Posts
    • #1755
      Webmaster
      Keymaster

      When running mofcomp in the command prompt you get this error:

      An error occurred while creating object 6 defined on lines 25 – 48:
      Error Number: 0x80041003, Facility: WMI
      Description: Access denied
      Compiler returned error 0x80041003

      This is because you aren’t running the command prompt in elevated mode. To do this, close the command prompt and right click the cmd prompt icon and click Run as administrator. Then try again.

Viewing 0 reply threads
  • You must be logged in to reply to this topic.