在Windows机器上获取PC(系统)信息 [英] Get pc (system) information on windows machine
问题描述
是否可以使用c#脚本获取以下信息.
PC名称 服务标签 CPU类型 CPU速度 c:\驱动器的大小, 已安装的RAM, 操作系统名称, 操作系统产品密钥, Office版本和Office产品密钥.
谢谢.
您正在寻找WMI.
http://www.codeproject.com/KB/cs/EverythingInWmi02.aspx >
让我也将链接添加到第3部分,该部分主要通过WMI进行硬件
http://www.codeproject.com/KB/cs/EverythingInWmi03.aspx >
MSDN还是WMI范围的绝佳资源...
http://msdn.microsoft.com/en-us/library/aa394554(v = vs.85).aspx
Is there a way to get the following information by using c# script.
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.
Thanks.
WMI is what you're looking for.
http://www.codeproject.com/KB/cs/EverythingInWmi02.aspx
Let me add the link to Part 3 too, which concentrates on hardware via WMI
http://www.codeproject.com/KB/cs/EverythingInWmi03.aspx
MSDN is also a great resource for WMI scopes...
http://msdn.microsoft.com/en-us/library/aa394554(v=vs.85).aspx
这篇关于在Windows机器上获取PC(系统)信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!