If you got the following output:
Microsoft (R) MOF Compiler Version 10.0.19041.320
Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
Parsing MOF file: cimwin32.mof
MOF file has been successfully parsed
Storing data in the repository...
Done!
... but still you get the WMI errors, please repair install Windows 10 using Media Creation Tool.
- Download Windows 10 Media Creation Tool (MCT) from this link:
https://go.microsoft.com/fwlink/?LinkId=2265055
- Run MCT and accept the license agreement.
- Click "Upgrade this PC now"
- This starts the repair installation.