This post originated from an RSS feed registered with .NET Buzz
by Anand M.
Original Post: Security Centre and WMI Repository
Feed Title: .NET From India
Feed URL: http://www.dotnetindia.com/index.rss
Feed Description: Your daily dose of .NET From India
One of my machines runs Vista with AVG for antivirus. It has been running fine for around 6 months and then suddenly a couple of weeks back I started getting security centre warnings. When I go into Security center I find that AVG (my antivirus) is not recognized and so Vista says I donât have any Anti-virus and it also says defender is off.
So I try turning on defender from SC and it shows up a windows saying checking for updates and kind of hangs there. When I look at Defender and AVG separately, I find both of them are running fine. After a bit of searching I found a couple of posts that talk about how the WMI repository being corrupt can popup such problems.
So I went ahead and run
winmgmt /verifyrepository
and sure enough it tells me that the repository is inconsistent. The way to repair the repository is to run
winmgmt /salvagerepository
There are quite a few posts in the internet on how this can fail multiple times and that you need to keep running this till it succeeds. It did fail the first time for me, but it did give the message that it had requested for a service to be stopped. So I kind of gave it 5 minutes and ran again. This time, it went through fine.
A reboot later, security centre was back to recognizing defender and AVG.