近期电脑频繁死机,通过查看日志发现。事件ID10,WMI错误
通过搜索找到解决方法,拷贝以下代码到文本文件里,另存为扩展名为“修复.vbs”,并运行一路确定。
代码:
strComputer = "."
Set objWMIService = GetObject("winmgmts:"
& "{impersonationLevel=impersonate}!/"
& strComputer & "/root/subscription")
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 obj1
set obj2set = obj1elem.Associators_("__FilterToConsumerBinding")
set obj3set = obj1elem.References_("__FilterToConsumerBinding")
For each obj2 in obj2set
WScript.echo "Deleting the object"
WScript.echo obj2.GetObjectText_
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
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/183100.html