開機後每 30 秒彈出 Winmgmt.exe has generated errors and will be closed by Windows... 錯誤,主因是 WMI (Windows Management Instrumentation) 儲存庫損壞:%SystemRoot%\System32\Wbem\Repository 目錄下檔案異常。停止 WMI 服務、刪除儲存庫、重啟服務自動重建即可修復。
C:\Windows\System32\Wbem\Repository,**刪除該資料夾內所有檔案/子資料夾** (資料夾本身保留)。HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM\CIMOM\Autorecover MOFs 定義的 MOF 檔案自動重建儲存庫。錯誤彈窗即刻停止。
winmgmt /resetrepository (需管理員 CMD) 嘗試指令修復。