问题描述
有没有办法通过c#脚本获取以下信息.
电脑名称服务标签处理器类型中央处理器速度c: 驱动器的大小,安装的内存,操作系统名称,操作系统产品密钥,Office 版本和 Office 产品密钥.
谢谢.
WMI 就是你要找的.p>
http://www.codeproject.com/KB/cs/EverythingInWmi02.aspxp>
让我也添加第 3 部分的链接,该部分主要介绍通过 WMI 的硬件
http://www.codeproject.com/KB/cs/EverythingInWmi03.aspxp>
MSDN 也是 WMI 范围的绝佳资源...
http://msdn.microsoft.com/en-us/库/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(系统)信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!