Event 1030 and 1065 error appear at Application log

 

Issue: 機器每天都會產生 1030/1065 的錯誤訊息

image

 

Cause:

· 此問題與GPMC介面上的WMI篩選有關, 因為機器的WMI發生問題所以無法執行WMI篩選的工作才出現錯誤

clip_image003

· 從 WMI控制台確認此台機器WMI的確有問題

clip_image004

Resolution:

· 透過指令的方法重建 WMI Repository (附加檔案: wmi.bat)

net stop winmgmt

c:

cd %systemroot%\system32\wbem

rd /S /Q repository

regsvr32 /s %systemroot%\system32\scecli.dll

regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof

mofcomp cimwin32.mfl

mofcomp rsop.mof

mofcomp rsop.mfl

for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s

for /f %%s in ('dir /b *.mof') do mofcomp %%s

for /f %%s in ('dir /b *.mfl') do mofcomp %%s

echo DONE - you must reboot

pause

· 重新啟動電腦

· WMI已經恢復正常運作, 事件檢視器也不在發生錯誤