Copy a folder and files to multiple computers (Powershell)

** THIS SCRIPT IS PROVIDED WITHOUT WARRANTY, USE AT YOUR OWN RISK **

I used this script to copy a new desktop background image to about 100 computers recently.

Usage:
1. You will need to create a folder on your computer (eg c:\script).
2. Copy the script to the folder in Step 1 and name it something (eg copyFiles.ps1).
3. Edit the script to change the $computers and $source variable to match your folder structure.
4. Open a Powershell window
5. Navigate to that folder you created.
6. To run the script type .\copyFiles.ps1

 

 

1 Comment

Leave a Reply