• Windows 7 SP1和Windows Server 2008 SP1的Event ID 10错误的解决方法


    安装了Windows 7 Service Pack 1 (SP1) 或 Windows Server 2008 R2 Service Pack 1 (SP1)都会遇到此错误提示。

    "Event filter with query "SELECT * FROM __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."

    解决方法:

    1.用文本编辑器(notepad)创建“fix.vbs”文件(注意:要用ANSI格式保存,否则运行报错)

    2.输入以下代码

    strComputer = "."
    
    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\" _
    & strComputer & "
    ootsubscription")
    
    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

    3.开始 -> 附件 -> 右键点击“命令提示符” -> “以管理员身份运行”

    4.运行“fix.vbs”文件

    5.遇到弹窗按回车,直到执行完毕

  • 相关阅读:
    linux远程桌面连接 VNC Server
    linux内核 mtd分区
    STC15控制数码管 38译码器
    DS12C887实时时钟
    printf打印字节调试
    LED 控制卡 单元板 接口引脚定义
    linux守护进程start-stop-daemon启动服务
    相机速率计算
    CodeWarrior IDE烧写介绍
    让 Web 站点崩溃最常见的七大原因
  • 原文地址:https://www.cnblogs.com/live41/p/3871375.html
Copyright © 2020-2023  润新知