Telemetry or CDF MSI fails to install or upgrade due to WMI repository Corruption

While it is possible to only rebuild a specific WMI provider, this article provides guidance on rebuilding the entire WMI repository.

For a quick verification of consistency, try to run the following:

1. winmgmt /verifyrepository

If the result is shown as inconsistent, go to step 2.

NOTE: A result of “Consistent” does not guarantee that the WMI providers are all working correctly and it may still be helpful to continue rebuilding.

2. winmgmt /salvagerepository

Once complete, check consistency again.

3. winmgmt /verifyrepository – to check again wmi repository had been repaired successfully

If the result is shown as consistent then run the metainstaller again.

If the result is still inconsistent or the metainstaller still continues to fail then follow the below steps.

If the issue is still unresolved, proceed to fully rebuild the WMI repository. Follow these steps to fully rebuild the WMI Repository :

1. Disable and stop the winmgmt service in the services.msc

2. Rename C:WindowsSystem32wbemrepository to “repository.old”

3. Enable and start the winmgmt service, this will create a new Repository folder

4. Open a CMD shell as Administrator

5. From the CMD prompt, navigate to C:WindowsSystem32wbem

6. Run the cmd: ‘for /f %s in (‘dir /b *.mof’) do mofcomp %s’ ( NOTE: Type the single quotes into the CMD as well)

7. This will take a minute or so to complete

8. Run the cmd: ‘for /f %s in (‘dir /b en-us*.mfl’) do mofcomp en-us%s’

9. Restart the machine.

Test to install again and see if the problem persists.​


  • No Related Posts

Leave a Reply