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.