The following VBS Script can be used to remotely get the Dell Service Tag from another computer on your network.
Output:
When you run the script it will prompt for the remote computer name:
After entering the computer name and clicking ‘OK’ it will return a prompt which includes the Dell Service Tag:
VBS Script:
on error resume next
strComputer=InputBox ("Enter the computer name of the server you'd like to query for Service Tag")
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