Disclaimer
This is my personal blog. The opinions and views I express are my own. The information I provide is on an as-is basis. I make no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this blog and will not be liable for any errors, omissions, or delays in this information or any losses, injuries or damages arising from its use.

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

 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.