I needed to produce a list of the service tags for all of the Dell systems at a site. I found a Visual Basic script at Query Dell Service Tag that could query a Dell system for the service tag. There were two versions there, one that would request the system name through a pop up window and another that could be run from a command prompt.
I wanted to be able to run such queries from a command prompt, so the second version appealed to me. But it only queried one system at a time, so I modified the script to allow me to specify multiple systems at one time on the command line. The updated script is available at Dell-ServiceTag.vbs.
Usage: cscript /nologo Dell-ServiceTag.vbs a b c Output: Computer: a Dell Service Tag: AGXQVD1 Computer: b Dell Service Tag: BRKF462 Computer: c Dell Service Tag: 1NFWLB3