Thoughts, ideas, ramblings. Covering a wide range of topics from Windows to Linux, Azure, hardware, software & more.
Search

Find a Dell Service Tag from the Command Line and Powershell

No-one likes rearranging their desk to find the little white sticker. It can be run from regular command or PowerShell session. Administrator permissions aren’t required.

Here is how to find it via Windows:

Command Prompt

wmic bios get serialnumber

Powershell

(Get-WmiObject win32_bios).SerialNumber

Powershell (Remote Computer)

(Get-WmiObject win32_bios -computer COMPUTERNAME).SerialNumber

Comments

2 Responses

  1. Thanks this worked beautifully. I just wanted the model and serial number for the current machine, so this is what I ended up with, after your help :)

    # —- status_model —-
    $status_model = (Get-WmiObject Win32_ComputerSystem).Model

    # —- status_serial —-
    $status_serial = (Get-WmiObject win32_bios).SerialNumber

Leave a Reply

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