Tuesday, January 28, 2014

Getting Dell Asset tag through WMI

http://www.edugeek.net/forums/scripts/3227-find-dell-service-tag.html

This WMI call usually works for other brands as well.

Single command:
  wmic bios get serialnumber
or
  wmic /node:"remote-pc-name-here" bios get serialnumber
or
 wmic csproduct get vendor,name,identifyingnumber

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


No comments:

Post a Comment