欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

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

windows系统错误之应用程序错误:WMI错误 (把红色的 FORM 改成 FROM)

{Event filter with query "SELECT * FORM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA "Win32_Processor" AND TargetInstance.LoadPercentage > 99" could not be reactivated in namespace "//./root/CIMV2" because of error 0x80041003. Events cannot be delivered through this filter until the problem is corrected.}


工具/原料

  • windows系统一个,一般是win7以上系统才会出这个错误
  • 系统记事本,VBscript

方法/步骤

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

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

  3. strComputer = "."


  4. Set objWMIService = GetObject("winmgmts:" _

  5. & "{impersonationLevel=impersonate}!\\" _

  6. & strComputer & "\root\subscription")


  7. 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'")


  8. For Each obj1elem in obj1


  9. set obj2set = obj1elem.Associators_("__FilterToConsumerBinding")


  10. set obj3set = obj1elem.References_("__FilterToConsumerBinding")


  11. For each obj2 in obj2set


  12. WScript.echo "Deleting the object"


  13. WScript.echo obj2.GetObjectText_


  14. obj2.Delete_


  15. next


  16. For each obj3 in obj3set


  17. WScript.echo "Deleting the object"


  18. WScript.echo obj3.GetObjectText_


  19. obj3.Delete_


  20. next


  21. WScript.echo "Deleting the object"


  22. WScript.echo obj1elem.GetObjectText_


  23. obj1elem.Delete_


  24. Next

  25. 4

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


来自  https://jingyan.baidu.com/article/39810a23aa86cab636fda6b4.html

普通分类: