Description
This script will tell you the Dell Tag of a system when you only have the Computer Name. Handy for when you need to look up the tag for support calls with Dell support. EDIT: Save the script as a VBS file and you likely will need to run it as a Domain Admin to get data from systems.
REM Find Dell Tag# Script
REM Based on FQDN or IP address.
strComputer = InputBox("Please enter the computername or I.P Address")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSMBIOS = objWMIService.ExecQuery _
("Select * from Win32_SystemEnclosure")
For Each objSMBIOS in colSMBIOS
Wscript.Echo "Dell Service Tag: " & objSMBIOS.SerialNumber
Next