Copying files to multiple workstations in different office
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.
Ex:
wksOffice101
wksOffice102
wksOffice201
Any help would be appriciated.
The computer names are setup the same way.
WKS followed by office # and 01, 02, 03 and so on.
Ex:
wksOffice101
wksOffice102
wksOffice201
Any help would be appriciated.
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
aogilmor
17 years ago
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>
Next
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!
arrComputers = Array("wksOffice101")
For Each strComputer In arrComputers
<copy file code>
Next
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!
Posted by:
anonymous_9363
17 years ago
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.