«

»

Print this Post

How to get your Dell Service Tag from the command line in Windows and Linux

There’s plenty of times you can need the serial number (aka Service Tag) from a Dell machine, but not be able to physically look at the label. It’s a server in a datacenter, it’s your laptop and it’s on a dock, etc, etc. Fortunately, there are easy commands to get the serial number right from the command line in both Windows and Linux.

Windows:

From a command prompt, type:

wmic bios get serialnumber

Linux (Ubuntu and others):

From a terminal, type:

sudo dmidecode -s system-serial-number

Comments are welcome, as always.

Permanent link to this article: http://mikebeach.org/2011/03/24/how-to-get-your-dell-service-tag-from-the-command-line-in-windows-and-linux/

7 comments

1 ping

Skip to comment form

  1. Steve Dolphin

    Helpful post, shame it doesn’t work in virtualised environments though (I never really expected it to, but I tried anyway!)

  2. Gee

    Worked for me, thanks.

  3. Carla

    I have only used command prompts once, so perhaps I am doing something wrong. When I go to the promot/dos screen, I see “C:\users\Carla>” I entered “wmic bios get serialnumber” and nothing showed up. Is it a different command for Windows 7?

    Thanks!

  4. Carla

    Oops! It actually did work! I must have made a typo. Thanks so much!!!

  5. Brianna

    Thank you SO SO SO SO much for this! I can’t make out my service tag info because the sticker is worn and the technicians acted like there was no other way for me to find the information. Thanks again for saving me time and annoyance.

  6. Jeff

    Ironically Mike, I needed this info just now. Google search brought it up as like the 4th result.

  7. Eugene Lui

    When run wmic bios serialnumber, I got an error saying ‘PWhere’ expression for the alias underfined. What should I do? Thanks.

  1. Getting your Dell Service Tag number from the command line in Ubuntu Linux » Mike Beach

    [...] How to get your Dell service tag from the command line in Windows and Linux. [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>