All Forums >> [Scripting] >> Post a VBScript >> Script Template Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Posts: 716
Score: 8
Joined: 8/25/2004
From: USA
Status: offline
I created this "Script Template" for all of my scripts that are ran against multiple machines. You can still use this against one machine via the InputBox, but was created to run off of a "pclist.txt" which contains multiple machine names. Each machine should be on it's own line in this text file.
1. Forces the script to run in CScript mode. (For countdown purposes. CTRL + C can be used to kill the script) 2. Checks the date of the "pclist.txt" and asks if you still want to use it or not. (Helps to make sure you are using a current list of machines) 3. Verifies the machine is online before proceeding 4. Writes all offline machines to a csv file.
This script is ready to run, just supply your pclist.txt. Currently you will just get an echo of "call function required", replace that with your function call. If you have any questions / comments about this script, please contact me through the email function here at VBScript Forum.