There are a few different methods to try when it comes to repairing a corrupt WMI (Windows Management Interface)

1. Open Up a Command Prompt

If running Windows Vista or Windows 7 you need to Run The Command Prompt As Administrator.  Right click the Command Prompt and then click Run as administrator.

2. Type this command and press Enter net stop winmgmt

3. Using Windows Explorer rename the folder C:WindowsSystem32WbemRepository to C:WindowsSystem32WbemRepository.old

4. Type this command and press Enter net start winmgmt

5. Restart the computer

The second method to try is

1. Open Up a Command Prompt

If running Windows Vista or Windows 7 you need to Run The Command Prompt As Administrator.  Right click the Command Prompt and then click Run as administrator.

2. Type this command and press Enter

rundll32 wbemupgd, UpgradeRepository

This command is used to detect and repair a corrupted WMI Repository. The results are stored in the setup.log

C:Windowssystem32wbemlogssetup.log

3. Restart the computer

The second method to try is

1. Type this command and press Enter

winmgmt /salvagerepository

2. Restart the computer