I'm looking for a script to copy multiple files to workstations that are located in different offie, that are all accessible via vpn.

The computer names are setup the same way.

WKS followed by office # and 01, 02, 03 and so on.

Any help would be appriciated.
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


download scriptomatic from microsoft and play around with it. One cool thing about wmi is that remote connections are built into it. By default scriptomatic generates an array for your local computer, but this can be modified:

arrComputers = Array("wksOffice101")
For Each strComputer In arrComputers
<copy file code>

You can place all your workstation names into the array, or declare an array and get it to read from a text file if you have a whole lot of them.

good luck!
Answered 11/27/2007 by: aogilmor
Ninth Degree Black Belt

Please log in to comment
Michel, PM me and I'll send you a file-handling script which you could hack into service. You would be able to use the principles outlined in it for handling the files to handle the multiple workstation targets which, as Owen hints at, is simply converting a list into an array, looping through that array and then performing an action. I would post the script but a) it's much too large and b) the forum strips indentation which would make it quite hard to follow.
Answered 11/28/2007 by: VBScab
Red Belt

Please log in to comment