Hello,
According to your description, WMI is having problems on Windows 10, probably due to a corrupted repository or a service that doesn't start properly. Here are some workarounds you can try:
- Make sure the WMI service is started. Press Win + R, type services.msc and press enter to open the Service Manager. Find the Windows Management Instrumentation service in the list of services, make sure that its status is Running, and that the startup type is set to Automatic. If it's not running, right-click on the service and select "Start".
- Recompile the specific .mof file and see if the problem can be fixed.
mofcomp C:\windows\system32\wbem\win32_Msi.mof
- If a large number of objects are lost and the missing classes cannot be queried, rebuild the WMI database by following the steps below:
Note: Rebuilding the WMI library will only rebuild the WMI information registered by the system by default, and the software installed later may also register its own WMI, in this case, the function of these software may be affected, and generally the affected software can be reinstalled to solve the problem.
Open the CMD window with administrator privileges:
a. Disable and stop WMI services:
sc.exe config winmgmt start= disabled
net stop winmgmt
b. Switch to the WBEM directory:
cd %windir%\system32\wbem
c. Rename to back up the original repository folder
rename repository repository.old
d. Change the WMI service back to automatic:
sc.exe config winmgmt start= auto
e. Run the following command to manually compile all default WMI .mof and .mfl files:
cd %windir%\system32\wbem
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s
- Ensure that the current user has sufficient privileges to access the WMI object. Check your firewall settings to make sure that the firewall isn't blocking traffic from the WMI service.
- Open the command prompt with administrator privileges and enter the following command: sfc /scannow to scan and fix errors in system files.
- WMI relies on other services, such as the Event Log Service and the RPC Service. Make sure that these dependent services are started.
I hope this information helps.
Best regards,
Jingjing Wu