In Windows, sometimes the underlying system reporting system (WMI) gets corrupt and this makes current licenses be detected as "invalid" as if more than one component (CPU, Hard Disk, Network Card, Bios) has changed.
In case you know there has been real hardware changes, please refer to support to have your license reset.
Please note that the following steps will possibly damage your system, so use them at your own risk.
However, if the WMI is corrupt, the only other option would be a complete Windows reinstall.
Manual Fixing
To fix a corrupt WMI repository, you can perform the following steps manually or through a script:
- Stop WMI Service and its dependencies:
net stop winmgmt
- Rename the WMI Repository folder:
ren %windir%\System32\wbem\Repository Repository.old
- Start WMI Service:
net start winmgmt
After these steps, Windows will rebuild the WMI Repository. This may take some time, and you may need to restart your computer.
FIxing using external tools
There are tools and utilities that can help you automatically repair WMI (Windows Management Instrumentation). One such utility is the built-in Windows tool WMIDiag
, a script-based utility provided by Microsoft that can diagnose and potentially repair problems with the WMI service. However, WMIDiag is more of a diagnostic tool, and while it can fix some issues, it might not fix all WMI problems automatically.
Here's how you can use WMIDiag
:
Download WMIDiag: You can download the WMIDiag tool from the Microsoft website or find it as part of the support tools on older versions of Windows.
Run WMIDiag: Execute the
WMIDiag.vbs
script from an elevated command prompt (Run as Administrator). The script will check the WMI service for issues and generate a detailed report.
cscript WMIDiag.vbs
Review the Report: After WMIDiag finishes running, it will generate a log file with the results of the diagnostics. Review this log file for any issues detected and suggested fixes.
Apply Fixes: WMIDiag may suggest certain corrective actions, which you can apply manually or it might apply some basic fixes automatically.
For automatic repair, Microsoft also provides a component of the operating system called the "WMI Control" panel, which includes a repair option. Here's how to access it:
- Open the "Run" dialog box by pressing
Win + R
. - Type
wmimgmt.msc
and press Enter. - In the WMI Control console, right-click on 'WMI Control (Local)' and select 'Properties'.
- Go to the 'Backup/Restore' tab.
- Click the 'Restore Now...' button to attempt a repair of the WMI repository.
Please note that the effectiveness of automatic repair tools can vary, and sometimes manual intervention may still be required to resolve complex issues. If the WMI repository is severely corrupted, the steps I provided in the previous answer (stopping the WMI service, renaming the repository, and restarting the service) might be necessary.
Always ensure you have proper backups and system restore points before attempting to repair system services like WMI, as these operations can have significant effects on the stability and functionality of the system. If you're not comfortable performing these actions, it may be best to seek assistance from a professional or Microsoft support.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article