Eventually I'm going to be using this in Java Applet for extra security to the user. I know it's possible because I remember doing it before, I just can't remember the line that gets the correct information.
I'm searching for a line that will return the Processor ID, Serial number. Just these two are fine.
I have used google and tried a few commands like "wmic bios get serialnumber" and it doesn't return anything.
The Processor ID and Serial number should be two unique numbers or Strings.
解决方案
The BIOS serial number often is not set.
This should always give you unique hardware information with a similar command:
wmic csproduct get uuid
You could also combine this info with more information to be sure it is unique. Some examples:
wmic csproduct get uuid,name
wmic bios get name,version