tfs - 由于错误 0x80041003,无法在命名空间 "//./root/CIMV2"中重新激活带有查询的事件过滤器

标签 tfs

在我的 SCVMM 服务器中,事件中记录了以下错误。

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.

如何解决?

最佳答案

尝试 Microsoft 的此解决方法。它实际上是一个很好的解决方案,并且对问题进行了“真实”的解释。

总之,这是 ISO 创建过程中剩余的 WMI 注册,可以安全删除。

对于 Windows 7,使用以下内容创建 .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

关于tfs - 由于错误 0x80041003,无法在命名空间 "//./root/CIMV2"中重新激活带有查询的事件过滤器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18586352/

相关文章:

tfs - 关闭他人的代码审查 TFS 2015

针对 TFS 组的 TFS 工作项查询

rest - 使用 TFS REST API 获取迭代中的所有工作项

tfs - 使用 TFS 2010 在一个用户/机器上的解决方案的多个副本

c# - 与其他版本相比,Visual Studio Team Foundation Server 的主要优势是什么?

visual-studio - 将 TFS checkin 策略限制为特定用户

jenkins - 如何删除 TFS 工作区映射?

tfs - 基于 TFS TeamFoundationIdentity 获取用户的(Active Directory)部门

file - Team Foundation Server 删除的文件可见

c# - 如何使用 TFS API 2013 获取所有迭代路径