Windows Security Center uses Windows Management Instrumentation (WMI) to acquire information about the installed Anti-virus and Firewall applications, and their current status. In some cases, the Security Center may show outdated or misleading information due to problem in WMI repository. Here is a case where the Windows Vista Security Center reports incorrect information.

Fig 1: Security Center incorrectly reporting anti-virus/firewall info.
In the subject computer, the McAfee firewall was already uninstalled, but the Security Center still lists it. In some cases the Windows Vista Security Center may not detect installed Anti-Virus or firewall. (REF KB944175)
This occurs due to Windows Management Instrumentation (WMI) problems, but the fix is pretty simple! In Windows Vista, new command-line parameters are included for winmgmt.exe which help you automatically repair the WMI.
Note: If you’re using Windows XP and experiencing this problem, check Repairing and re-registering the WMI article for information on fixing WMI issues in Windows XP.
Resolution
To repair the WMI repository in Windows Vista, use these steps:
Open an elevated Command Prompt. To open an elevated Command Prompt, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator.
Type the following command and press ENTER:
If the command was successful, you should see the message WMI repository has been salvaged. Restart Windows and see if the Security Center issue is resolved.
Editor’s note: If you receive the error "WMI repository salvage failed" when running the above command, running the command the second time might help.
More Information
Running the winmgmt /salvagerepository command performs a consistency check on the WMI repository, and if an inconsistency is detected, rebuilds the repository. If you just want to check the WMI repository (without fixing it), use this command:
You may get either WMI repository is consistent or WMI repository is INCONSISTENT in the output.
Related Posts
- Reliability and Performance Monitor Not Detecting Anti-Virus Product in Windows 7/Vista
- Update AVG Anti-Virus Silently Using Command-Line
- Enable and Disable Windows Firewall Quickly Using Command-Line
- Error “a .Bin File Is Missing” When Updating AVG Anti-Virus 8.0
- Updating Microsoft Security Essentials Using Command-Line
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?





I removed the trial virus protection off my laptop and installed a new package which seems to be working ok but i get a warning message on my Windows Security Alerts Icon that i have no anti virus.
I tried the above solution but got the same message as Eddie above & am still getting the same warning on my Windows Security Icon.
Can anyone help please ?
Cheers
Dave
I tried both of your command prompts and get same messege:
wmi repository consistent
I DO NOT GET WMI REPOSITORY HAS BEEN SALVAGED
plus i have to be in safe mode as i cant acess the normal windows
please please i been tryin evrything i seen online
but no luck
I tried both of your command prompts and get same messege:
wmi repository consistent
I DO NOT GET WMI REPOSITORY HAS BEEN SALVAGED
Is there a key step missing?
thanx,
eDDIE