解决windows系统报错事件ID:10之WMI报错

2025-03-30 23:41:43

1、新建一个文本,更名为【解决WMI报错.vbs】

2、右键编辑【解决WMI报错.vbs】,将以下代码复制其中保存即可

3、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 obj1set obj2set = obj1elem.Associators_("__FilterToConsumerBinding")set obj3set = obj1elem.References_("__FilterToConsumerBinding")For each obj2 in obj2setWScript.echo "Deleting the object"WScript.echo obj2.GetObjectText_obj2.Delete_nextFor each obj3 in obj3setWScript.echo "Deleting the object"WScript.echo obj3.GetObjectText_obj3.Delete_nextWScript.echo "Deleting the object"WScript.echo obj1elem.GetObjectText_obj1elem.Delete_Next

4、弹出的对话框直接确定就可以了

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢