How to find Dell Service Tags and Model Numbers via Command Line – Special thanks to Jayse on Spiceworks
Open command prompt
Go to Start > Run and type cmd to start your command prompt. Administrative rights are not required to run this command.
Finish by Choosing either step 2 or 3 depending on your setup.
Obtain Service Tag locally with command line
In the command prompt type the following and press Enter/Return:
wmic csproduct get vendor,name,identifyingnumber
Obtain Service Tag remotely with command line
If VNC or remote desktop connection to the remote-host is not available, execute the following from the local-host to get the service tag of the remote-host.
wmic /user:administrator /node:remote-host bios get serialnumber
You will be prompted for the password for account administrator.
NOTE : Type the above command only replacing the remote-host with the workstation’s name you’re querying. You can replace ‘administrator’ with another account.
wmic /user:DanielSon /node:KarateComputer bios get serialnumber