Copy Scripts Folder Content to Central Repository


This script copies files (.ps1, .cmd, .xml) from your scripts 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.



# 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




%d Bloggern gefällt das: