Description
This script copies files (.ps1, .cmd, .xml) from your “scripts”-folder to a new target while persisting the directory structure.
The intention is to copy files from a script development or administrative system to a central (UNC-based) file repository.
*.log files are excluded from being copied to the target directory.
Only new files and files changed during the last 180 days are copied.
Examples
# EXAMPLE # Copy all files using the parameter default .\Copy-ScriptsToRepository # EXAMPLE # Copy files from a dedicated source to a different destination folder .\Copy-ScriptsToRepository -Source f:\Scripts -Destination \\MYSERVER\Scripts
Version History
- 1.0, Initial community release
Links
- Download and follow at Github: https://github.com/Apoc70/Copy-ScriptsToRepository
Follow
- Twitter @stensitzki