Website-Icon Granikos GmbH & Co. KG

Copy Scripts Folder Content to Central Repository

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

Links

Follow

Kurz-URL | Short URL: https://granikos.eu/go/KcPj
Die mobile Version verlassen