Get a Dell Service Tag remotely via vbscript

ShareShare on FacebookTweet about this on TwitterPin on PinterestShare on Google+Share on Reddit

Just found/customized this little snippet to allow me to get any Dell service tag over the network:

strComputer = WScript.Arguments.Item(0)
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

Put that in a .vbs file, call it from a command line via:
cscript yourfile.vbs computername

Requires NetBIOS and WMI admin rights for the computer you’re querying (and resolution of that name, of course)

This entry was posted in technology. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *