让Windows机器上的PC(系统)信息 - C#脚本 [英] Get pc (system) information on windows machine - C# script

查看:199
本文介绍了让Windows机器上的PC(系统)信息 - C#脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用C#脚本获得以下信息。

Is there a way to get the following information by using c# script.

PC名称
服务标签
CPU类型
CPU速度
 的C尺寸:\\驱动器,
安装的RAM,
操作系统名称,
操作系统产品密钥,
Office版本和Office产品密钥。

PC Name Service Tag CPU type CPU speed size of the c:\ drive, Installed RAM, OS name, OS Product Key, Office Version, and Office Product Key.

感谢。

推荐答案

WMI是你要找的是什么

WMI is what you're looking for.

<一个href=\"http://www.$c$cproject.com/KB/cs/EverythingInWmi02.aspx\">http://www.$c$cproject.com/KB/cs/EverythingInWmi02.aspx

让我添加链接到第三部分也是如此,它通过WMI专注于硬件

Let me add the link to Part 3 too, which concentrates on hardware via WMI

<一个href=\"http://www.$c$cproject.com/KB/cs/EverythingInWmi03.aspx\">http://www.$c$cproject.com/KB/cs/EverythingInWmi03.aspx

MSDN也是一个很好的资源为WMI作用域...

MSDN is also a great resource for WMI scopes...

<一个href=\"http://msdn.microsoft.com/en-us/library/aa394554(v=vs.85).aspx\">http://msdn.microsoft.com/en-us/library/aa394554(v=vs.85).aspx

这篇关于让Windows机器上的PC(系统)信息 - C#脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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