Skip to content

How to fix getmac ERROR: Invalid Class (Windows /8/10/11)

January 8, 2021
Windows 10

Learn how to troubleshoot the ‘getmac ERROR: Invalid Class (Windows /8/10/11)’ issue. Explore the causes of the error and discover step-by-step solutions to resolve it and ensure your Windows 10 system functions smoothly

  1. Disable and stop the winmgmt service
  2. Remove or rename C:\Windows\System32\wbem\repository
  3. Enable and start the winmgmt service
  4. Open a CMD prompt as Administrator
  5. In the CMD prompt Navigate to C:\Windows\System32\wbem\
  6. Run the following command:
for /f %s in ('dir /b *.mof') do mofcomp %s

Note: This will take a minute or so to complete.

  1. Now run the command:
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s

Now restart the computer.