Skip to content

Instantly share code, notes, and snippets.

@mintsoft
Created July 10, 2013 15:59
Show Gist options
  • Select an option

  • Save mintsoft/5967526 to your computer and use it in GitHub Desktop.

Select an option

Save mintsoft/5967526 to your computer and use it in GitHub Desktop.
Report on a DELL's service tag remotely
on error resume next
strComputer=InputBox ("Enter the computer name of the server you'd like to query for the 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment