How to get system Serial Number from Dos command?

Namuna

Platinum Member
Jun 20, 2000
2,435
1
0
I've got a Batch file that systematically installs applications and then writes some general info about the system to a text file in a shared location.

This is in a Windows2000 environment and getting the computers' name (%hostname%) is easy enough but I also need the computer's serial number so we can keep proper records.

Is there a DOS command (or some kind of workaround that can be done from a simple Batch File) that can do this?

Thank you.