Retrieve PC serial number from the command line
wmic bios get serialnumber
There's a trick to getting it to run remotely using PsExec:
- Connect to the command prompt as per normal e.g.: psexec \\computername cmd
- Enter above command as: cmd | wmic bios get serialnumber
- Wait a few seconds for the command to execute, then type exit. It will spit out the result.
No comments:
Post a Comment