如何删除已发布的 wmi 架构? [英] How to remove published wmi schema?

查看:28
本文介绍了如何删除已发布的 wmi 架构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经发布了架构,并且不再有包含发布架构的 wmi 提供程序的 dll.如何删除架构?

I've published schema, and no longer have the dll's that contained the wmi provider that the schema was published from. How can I remove the schema?

推荐答案

如果您是从其他问题谈论程序集,您可以简单地使用 wbemtest.exe:

If you are talking about the assembly from your other question, you can simply use wbemtest.exe:

  • 连接到根命名空间
  • 枚举实例...按钮(超类名称:__命名空间)
  • 删除名为 Test 或 MyTest 的实例

这将删除整个命名空间,包括您创建的所有类.如果你想删除一个类并离开命名空间

That will delete the entire namespace including all the classes you created. If you want to delete a class and leave the namespace

  • 连接到 Root\Test
  • 枚举类...按钮(递归)
  • 删除你想要的课程

如果有多台机器,这可以使用 WMI 脚本库或 System.Management 自动化.使用 MOF,您可以使用 #pragma deleteclass.如果架构是使用 #pragma autorecover 创建的,您需要从

If there are multiple machines this can be automated using WMI scripting library or System.Management. With MOF you can use #pragma deleteclass. If the schema was created with #pragma autorecover you need to remove the entry from

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM\CIMOM\autorecover mofs

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WBEM\CIMOM\autorecover mofs

这篇关于如何删除已发布的 wmi 架构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆