Dell & HP – Service Tags / Serial Numbers / Models via Command Prompt (CMD) or PowerShell

Service Tag, Serial Number, and Model of Your Windows Computer via CMD & PowerShell

Need to know the service tag / product number of your Dell or HP? These are handy to check warranty statuses on manufacturer websites.

The pandemic drove higher degrees of remote support out of necessity, but in many cases it didn’t confer any additional troubleshooting and/or sleuthing skills onto end-users. for this information is not always the best option. So, how to obtain the service tag / product number of the Dell or HP in question?

Though often adhered to the hardware in the form of a sticker, they’re not always easy to find even if they haven’t been marred or removed. The same information that would be on a typical sticker also (generally) resides in the system BIOS. It’s a risk directing unsavvy users into the labyrinth of choices sprouting from the many BIOS menu options. An errant click and save can render a machine inoperable. What to do?

Instructions for Command Prompt and PowerShell to follow.

To get started the Command Prompt, open up a CMD window, and enter the following:

C:>wmic bios get serialnumber

(If you’re getting any errors, start over using a elevated command prompt)

The command will yield the “service tag” for a Dell computer or the “serial number” for a HP machine.

If it’s a Dell, you’re done. If it’s HP, you actually need your model# as well for support.

Here’s the command to get both the serial number and model for your HP:

C:>wmic csproduct get name, identifyingnumber

Prefer PowerShell? Launch a window and get the service tag / serial number:

PS C:> Get-WmiObject -Class Win32_BIOS

Now we still need the machine’s model designation.

PS C:> msinfo32

Retrieving this support information should have been painless, even for beginners. Know a better way to retrieve this kind of data? Send me a note. Thanks!