Link to home
Start Free TrialLog in
Avatar of jpguillebaud
jpguillebaud

asked on

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.
Avatar of Pearl_export_ben
Pearl_export_ben
Flag of United Kingdom of Great Britain and Northern Ireland image

Hey...

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
Next 

Open in new window

Avatar of jpguillebaud
jpguillebaud

ASKER

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

wmic bios get serialnumber
ASKER CERTIFIED SOLUTION
Avatar of Pearl_export_ben
Pearl_export_ben
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you, very useful.