Getting the Service Tag/ Serial Number through CMD

This is a reminder for myself really, but its handy for referance

To retrieve serial number of the computer run the following command from command line

To retrieve model name of the computer run the following command from command line

This code doesn’t return information for all computers but it seems to work on  windows 7

Comments are closed.