First off, thanks for the script. I hope it will just be a temporary thing.
I'm relatively new to the group I just started with and don't want to rock the boat with them too much just yet. Can you imagine the "new guy" telling the seasoned veterans, who've always done things one way, there is a better way to do it? I just saw an opportunity to try and make things a little easier. I like your suggestion about a small router or something similar that will do DHCP / DNS. I've seen devices that do DHCP, but didn't realize there were some that would do DNS as well. I'll start out with the script solution and then once they see it can be done differently, will slide in the suggestion for the other device.
Thanks again !
Main Topics
Browse All Topics





by: Shift-3Posted on 2009-09-18 at 11:18:38ID: 25368502
I am compelled to point out that this is not an efficient way to do things. Even cheap consumer-grade routers can run DHCP and DNS using Linux-based firmware such as DD-WRT or Tomato. There's no reason to do it the hard way.
If you are bent on persisting in your current setup, paste the script below into a text file with a .vbs extension. Customize the contents of the arrComputers array on line 1 with the names or IP addresses of the target computers. Customize the value of the strFile variable on line 2 with the location of the file to be copied. Customize the value of the strPath variable on line 3 with the location to copy the file to, as it would appear in a UNC path.
Running the script will copy the file to each of the computers, overwriting existing files. Errors will be echoed to the console and written to a comma-delimited text file.
Select allOpen in new window