How to get Serial Number...etc. of Windows XP Home with Java or Command Line
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.
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:
A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software. It is mandatory that this only contain printable ASCII characters
精彩评论