通过umi wmi在工作组中收集远程系统信息 [英] gathering remote system information in workgroup by uing wmi

查看:59
本文介绍了通过umi wmi在工作组中收集远程系统信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做关于远程系统信息的项目

如何连接到工作组中的远程计算机,并使用c#中的wmi收集硬件和软件(如操作系统等)等信息?

I am doing project on remote system information
how to connect to the remote computer in workgroup and gather information like hardware and software such as operating-system etc by using the wmi in c#?

推荐答案

这篇文章是为了帮助您入门:

http://www.terminally-incoherent.com/blog/2010/02/18/collecting-hardware-information-using -c-and-wmi / [ ^ ]



但是,目前还没有很多完整的应用程序使用C#进行盘点。这样做的原因是,通过VBScript或最近的Powershell进行清点的典型方式。我不确定您的要求,但我会查看使用预先构建的脚本执行清单,然后将信息保存到CSV文件。然后你可以用C#读它。但是,如果您想构建一些内容,上面的文章将为您提供所需的内容。最后一块将是身份验证。我相信你需要在每台机器上登录,因为它们在工作组中。然后,您将使用此登录名在该远程计算机上对您进行身份验证。
Here is an article to get you started:
http://www.terminally-incoherent.com/blog/2010/02/18/collecting-hardware-information-using-c-and-wmi/[^]

However, there aren't a lot of full applications already out there to do an inventory using C#. The reason for this is because the typical way of doing an inventory is through VBScript or, more recently, Powershell. I'm not sure of your requirements, but I would look at doing the inventory using a pre-built script and then saving the information to a CSV file. Then you could read it using C#. However, if you want to build something, the above article will give you what you need. The last piece will be authentication. I believe you will need a login on each machine since they are in a workgroup. Then you will use this login to authenticate you on that remote machine.


这篇关于通过umi wmi在工作组中收集远程系统信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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