Where can I find the service tag in the registry?

We have Dell workstations. Occasionally we need to find the service tag for them in order to contact Dell and/or find suitable components. This tag is written in a label stuck to each computer, however I am wondering if this can also be found by looking for the service tag in the registry instead.

We use the Belarc analyser to give an overview of the hardware and software, and I notice that this report includes the service tag which suggests that it must be possible to determine it without looking at the label.
Who is Participating?
Pearl_export_benConnect With a Mentor Commented:
Awesome.... Another option using VB Script... Save the below code to a VBS File:

on error resume next
Set objWMIservice = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
set colitems = objWMIservice.ExecQuery("Select * from Win32_BIOS",,48)
For each objitem in colitems
      Wscript.echo "Dell Service Tag: " & objitem.serialnumber

Run the file like this:
cscript C:\folder\script.vbs MyComputerName

And it will return the value of a remote PC too.  Very useful if you are making calls about PC's other than your own on the network.

Unfortunately the Dell Service tag is stored in the BIOS, not the registry.

This piece of VB script will return the service tag of the current machine:

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSMBIOS = objWMIService.ExecQuery _
("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Serial Number: " & objSMBIOS.SerialNumber

Open in new window

jpguillebaudAuthor Commented:
I have found a much simpler way to do this. Simply enter the following command into the command prompt:

wmic bios get serialnumber
jpguillebaudAuthor Commented:
Thank you, very useful.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.