Question : Problem: 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.

Answer : Problem: Where can I find the service tag in the registry?

Awesome.... Another option using VB Script... Save the below code to a VBS File:

on error resume next
strComputer=WScript.Arguments.Item(0)
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
Next
'

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.
Random Solutions  
 
programming4us programming4us