The Mono .NET framework and WMI(Mono .NET 框架和 WMI)
问题描述
我们有一个使用 WMI 的 .NET 项目,并且有兴趣将其移植到 Mono 框架.
We have a .NET project that uses WMI and are interested in porting it to the Mono framework.
看来 Mono 不支持 WMI.
It appears Mono does not support WMI.
有没有可以添加 WMI 支持的库?
Are there any libraries that can add WMI support?
基本上,我们希望使用 WMI 从 Linux/OS X 机器访问 Windows 服务器.
Basically we would want to access a Windows server using WMI from a Linux/OS X box.
推荐答案
Windows Management Instrumentation 是 Microsoft 的 WBEM (基于 Web 的企业管理).
Windows Management Instrumentation is a Microsoft implementation of WBEM (Web-Based Enterprise Management).
有一些开源实现(例如 openPegasus),您可能可以使用客户端,但是没有人知道 MS 对他们的版本做了什么.如果您可以将 CIM 查询发送到服务器,那么您可能会得到很好的结果.
There are open-source implementations (eg openPegasus) that you might be able to use a client, but there's no telling what MS did with their version. If you can send CIM queries to the server, then you may get good results.
请注意,Windows 不会通过 http 执行 WMI,只有 DCOM/DCE-RPC,因此某些客户端将无法正常工作.快速 google.. 和 OpenPegasus 将允许您使用 WMI Mapper 访问 Windows.如果没有,您始终可以在 Windows 上运行服务器组件.
Note that Windows doesn't do WMI over http, only DCOM/DCE-RPC, so some clients will just not work. A quick google.. and OpenPegasus will allow you to access Windows using a WMI Mapper. If not, you could always run the server component on Windows.
这篇关于Mono .NET 框架和 WMI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Mono .NET 框架和 WMI
基础教程推荐
- 如果条件可以为空 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- 将数据集转换为列表 2022-01-01
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- 从 C# 控制相机设备 2022-01-01
