Created
July 10, 2013 15:59
-
-
Save mintsoft/5967526 to your computer and use it in GitHub Desktop.
Report on a DELL's service tag remotely
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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