近期電腦頻繁死機,經過查看日誌發現。事件ID10,WMI錯誤
經過搜索找到解決方法,拷貝如下代碼到文本文件裏,另存爲擴展名爲「修復.vbs」,並運行一路肯定。
代碼:安全
strComputer = "."app
Set objWMIService = GetObject("winmgmts:"
& "{impersonationLevel=impersonate}!\"
& strComputer & "\root\subscription")ide
Set obj1 = objWMIService.ExecQuery("select from __eventfilter where name='BVTFilter' and query='SELECT FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA ""Win32_Processor"" AND TargetInstance.LoadPercentage > 99'")日誌
For Each obj1elem in obj1blog
set obj2set = obj1elem.Associators_("__FilterToConsumerBinding")事件
set obj3set = obj1elem.References_("__FilterToConsumerBinding")ip
For each obj2 in obj2setci
WScript.echo "Deleting the object"get
WScript.echo obj2.GetObjectText_it
obj2.Delete_
next
For each obj3 in obj3set
WScript.echo "Deleting the object"
WScript.echo obj3.GetObjectText_
obj3.Delete_
next
WScript.echo "Deleting the object"
WScript.echo obj1elem.GetObjectText_
obj1elem.Delete_
Next
問題緣由:這起源於Windows 7 SP1 DVD / ISO建立過程。建立過程當中存在致使WMI註冊保留在DVD / ISO中的問題。因爲註冊只能在DVD / ISO建立過程當中工做,所以沒法在實時系統上運行並致使這些事件。這些事件不表示系統中的任何問題,能夠安全地忽略。可是,若是您但願阻止生成這些事件並但願手動刪除此特定WMI註冊,請按照本文中提到的步驟運行變通方法腳本。原文地址https://support.microsoft.com/en-us/help/2545227/event-id-10-is-logged-in-the-application-log-after-you-install-service#FixItForMeAlways