When you start your computer, you may receive the following error message:
Winmgmt.exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created.
The error message appears approximately every 30 seconds.
This behavior can occur if files in the %SystemRoot%\System32\Wbem\Repository folder become corrupted. The error message appears repeatedly because Winmgmt.exe polls the files every 30 to 60 seconds.
To resolve this behavior, delete and then recreate the files in the %SystemRoot%\System32\Wbem\Repository folder:
On the Desktop, right-click My Computer , and then click Manage .
Under Services and Applications , click Services , and then stop the Windows Management Instrumentation service.
Delete all of the files that are in the %SystemRoot%\System32\Wbem\Repository folder.
Restart the computer. The files are recreated when the computer restarts.