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
- Disable and stop the winmgmt service
- Remove or rename C:\Windows\System32\wbem\repository
- Enable and start the winmgmt service
- Open a CMD prompt as Administrator
- In the CMD prompt Navigate to C:\Windows\System32\wbem\
- Run the following command:
for /f %s in ('dir /b *.mof') do mofcomp %s
Note: This will take a minute or so to complete.
- Now run the command:
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
Now restart the computer.