Tuesday, 20 March 2018

How to remotely read a Dell Optiplex Tag number (serial no) via command prompt

There are plenty of management tools that will gather the data for you, but if you're on a domain network and just need a quick way to gather some serial numbers for known computer names, try this method using the command prompt shell.

Dell support have a useful document telling you how to use the command
WMIC BIOS GET SERIALNUMBER to retrieve the Dell serial number, aka Tag Number.

Often that command is blocked by firewall and security settings if you try to run it remotely using the /Node option. Similarly for PowerShell commands using the Get-WmiObject command. I also couldn't find any useful info in the registry either via regedit, so no quick shortcut with Remote Registry service.

By far the quickest and simplest way was to take advantage of the Sysinternals PSExec command. This allows you to run a remote command shell from a local computer.

So on your server or PC logged into the domain as an admin, you'd start a command prompt and run the commands:

   to start a command shell running on the computer called but displaying locally

   to retrieve the serial number of the connected computer

   to close the remote command prompt and return to your local prompt

Trust 1&1 Internet for your domain name registration, from only £1.99/year!. Check now!