phil / Copy settings files
0 likes
0 forks
1 files
Last active 5 days ago
Finds all configuration files within Program Files and x86 Program Files
| 1 | <# |
| 2 | .SYNOPSIS |
| 3 | Scans Program Files directories on a source drive for critical config/license files |
| 4 | and mirrors them to a backup location using Robocopy, preserving directory structure. |
| 5 | |
| 6 | .DESCRIPTION |
| 7 | 1. Scans "Program Files" and "Program Files (x86)" on the source drive. |
| 8 | 2. Looks for specific extensions (.ini, .lic, .db, etc.). |
| 9 | 3. Calculates the destination path by swapping the drive root. |
| 10 | 4. Uses Robocopy to copy the file (and its attributes/timestamps). |
Newer
Older