Jump to content

benjtodd

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by benjtodd

  1. You can actually read most service tags which are usually serial numbers (I don't have a dell but I do have IBMs, Intels, Toshibas, etc) by using smbios calls in vbscript. An example from Microsoft is below. Note that you can use this during the GuiRunOnce on XP, but while it will work during cmdlines on 2000 it will not work in cmdlines on XP. I worked with MS on that issue and they say thats just the way it is now (the object returns null). But since most people in this forum use GuiRunOnce that shouldn't be a problem generally. 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 "Part Number: " & objSMBIOS.PartNumber Wscript.Echo "Serial Number: " & objSMBIOS.SerialNumber Wscript.Echo "Asset Tag: " & objSMBIOS.SMBIOSAssetTag Next Technet Scripting Example
×
×
  • Create New...