Advertisement
opexxx

Get Service Tag from Dell BIOS.vbs

Apr 7th, 2014
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. strComputer = "."
  2. Set objWMIService = GetObject("winmgmts:" _
  3. & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
  4. Set colBIOS = objWMIService.ExecQuery _
  5. ("Select * from Win32_BIOS")
  6. For each objBIOS in colBIOS
  7. Wscript.Echo "localhost = SJG0-" & objBIOS.SerialNumber
  8. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement