如何获取序列号...等使用 Java 或命令行的 Windows XP Home
我有一个 Java 程序,它使用 WMIC 来获取有关 PC 硬件的某些信息。问题是,Windows XP家庭版没有WMIC。我做了一些研究,除了 WMI 之外我没有找到任何方法来获取我想要的信息。我还考虑过在有问题的机器上安装 WMIC,但我没有找到任何东西。我想要的信息包括:序列号、型号、制造商、操作系统版本...以及其他信息。我主要想要序列号。
我更喜欢使用 Java 或命令行。
I have a Java program which is using WMIC to get certain information about the hardware of the PC. The problem is, Windows XP Home edition does not have WMIC. I did some research and I did not find any way besides WMI for getting the information I want. I also looked into installing WMIC on the machine in question but I did not find any thing down that road ether. The information I want includes: Serial #, Model #, Manufacturer, OS Version...and other things. Primarily I want the Serial Number.
I prefer to use Java or the Command Line.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道序列号,但混合了 SNMP 和 Nmap 您可以收集很多信息,例如操作系统版本、制造商等。例如使用命令
nmap - A-O ip
检索操作系统详细信息和制造商非常容易。使用 SNMP 代替,您可以阅读 sysDecr OID 描述您应该收集以下信息:I don't know about the serial number but with a mix of SNMP and Nmap you can gather a lot of informations such as OS Version, Manufacturer etc. For instance with the command
nmap -A -O ip
it's very easy to retrieve OS details and Manufacturer. With SNMP instead, as you can read on the sysDescr OID description you should gather the following informations: