How to Fix Wmi Errors in Vista
1. Hit the 'Start' button and launch a command prompt with elevated privileges. In the search box on the 'Start' menu type in 'Command Prompt'. When this appears right click the program and click on 'Run as Administrator'.
2. Wait for the prompt to open, and when it does type in 'net stop winmgmt'. This will stop the WMI so we can fix it.
3. Navigate to 'C:\Windows\System32\wbem' and right click on the folder 'Repository' and rename it to something like, 'Repository_bad.'
4. Go back to the command prompt you used earlier and type in the command, 'net start winmgmt'.
5. Re-register the WMI by typing the following command into the command prompt, 'winmgmt /salvagerepository.' This command will make Vista assess the WMI folder and when it can't find it, (due to your renaming it earlier) and it will automatically fix all the errors caused by the old WMI files by creating new WMI components.