phudson Posted August 19, 2015 Posted August 19, 2015 (edited) I have a script and a .txt file that has a list of computers. Below is the batch file i run to copy the SD folder to the listed computers. for /f %%i in (c:\SD\Computers.txt) do robocopy C:\SD\ \\%%i\C$\ /E Pause. Right now the batch file copy's all contents of the SD folder to each computer one at a time. What could i do to make to copy to all the computers at the same time? Also i don't care its is VBS or any other language even powershell. Thanks for any advice. Edited August 19, 2015 by phudson
halbaradkenafin Posted August 20, 2015 Posted August 20, 2015 GPO would be the easiest way if the contents are always going to be in the same source location. Not many ways to do it to multiple PCs simultaneously, possibly Powershell Jobs but I haven't done much with them so couldn't tell you how easy/hard it would be.
Meldrew Posted August 20, 2015 Posted August 20, 2015 I have a script and a .txt file that has a list of computers. Below is the batch file i run to copy the SD folder to the listed computers. for /f %%i in (c:\SD\Computers.txt) do robocopy C:\SD\ \\%%i\C$\ /E Pause. Right now the batch file copy's all contents of the SD folder to each computer one at a time. What could i do to make to copy to all the computers at the same time? Also i don't care its is VBS or any other language even powershell. Thanks for any advice. I've not tested, but if you put 'start' without the quotes between 'do' and 'robocop'y, each robocopy to a PC should pop up in a different cmd window, so therefore happen simultaneously. HTH, Meldrew
phudson Posted August 20, 2015 Author Posted August 20, 2015 I've not tested, but if you put 'start' without the quotes between 'do' and 'robocop'y, each robocopy to a PC should pop up in a different cmd window, so therefore happen simultaneously. HTH, Meldrew Thanks that worked!!! for /f %%i in (%~d0\SoftwareDeployment\Lists\Computers.txt) do start robocopy %~d0\Softwaredeployment\SD\ \\%%i\C$\ /e exit
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now