Microsoft KB Archive/298130

= Error Message: Winmgmt.exe Has Generated Errors and Will Be Closed by Windows =

PSS ID Number: 298130

Article Last Modified on 10/11/2002

-

The information in this article applies to:


 * Microsoft Windows 2000 Server SP1
 * Microsoft Windows 2000 Server SP2
 * Microsoft Windows 2000 Advanced Server SP1
 * Microsoft Windows 2000 Advanced Server SP2
 * Microsoft Windows 2000 Professional SP1
 * Microsoft Windows 2000 Professional SP2

-



This article was previously published under Q298130



SYMPTOMS
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.



CAUSE
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.



RESOLUTION
To resolve this behavior, delete and then re-create 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 turn off and stop the Windows Management Instrumentation service. Delete all of the files that are in the %SystemRoot%\System32\Wbem\Repository folder. (Make a backup copy before you delete the files.) Open Services and Applications, click Services, and then turn on and start the Windows Management Instrumentation service. The files are recreated when the service restarts based on the information provided in the following registry key:



NOTE: Some programs will not add their Managed Object Format (MOF) files to this list, in this case, rebuilding the WMI database may cause those programs to generate errors or fail and may require more troubleshooting of their specific WMI requirements.

Additional query words: wmi sms

Keywords: kbenv kberrmsg kbprb KB298130

Technology: kbwin2000AdvServ kbwin2000AdvServSearch kbWin2000AdvServSP1 kbWin2000AdvServSP2 kbwin2000Pro kbwin2000ProSearch kbWin2000ProSP1 kbWin2000ProSP2 kbwin2000Search kbwin2000Serv kbwin2000ServSearch kbwin2000ServSP1 kbwin2000ServSP2 kbWinAdvServSearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2003 Microsoft Corporation. All rights reserved.