Hi Jeff,
The WMI moniker string (the argument to the GetObject function in your code) only connects to a single computer. However, here are two options:
1. Use the Cmd.exe For command to parse the text file and execute the WSH script for each line in the text file (simpler), or
2. Extend the script to use the FileSystemObject objects and methods to read the text file from within the WSH script (more complex).
For a quick-and-dirty solution, #1 is simpler. For example:
@echo off
setlocal enableextensions
for /f %%p in ('type Computers.txt') do cscript MyScript.vbs %%p
endlocal
The above script echoes each line of the file Computers.txt and passes it as an argument to MyScript.vbs (your WMI script, above).
Solution #2 is beyond the scope of a short forum reply, but there are numerous examples in past articles of how to open, read, and close text files from a WSH script.
HTH,
Bill