The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

mod2008 (6) [Avatar] Offline
Hello All,

Wondering if anyone can help me.

I need to create a PS script to copy a folders contents (on the same host that the script is running from) over to another folder on one or more hosts?

For the destination hosts I would have a simple text file (containing the names of them) that the script could read from, then one at a time, the script copies the contents of the source folder contents over to each destination host.

Hope anyone can help me to get started on this.


mod2008 (6) [Avatar] Offline
Re: Using PS to copy files between hosts
Thanks all - I've managed to achieve what I intended.