Files
lst_v3/scripts/LabelLayoutCopy.ps1
Blake Matthes 77b4533dea
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m41s
feat(scanner): more work on the scanner and can now scan to prod no lst right now
2026-04-25 18:13:07 -05:00

12 lines
494 B
PowerShell

$source = "C:\Sources\AlplaPROD\MasterLayouts"
$servers = @("USMCD1VMS036", "USSTP1VMS006", "USLIM1VMS006")
$log = "C:\Sources\AlplaPROD\MasterLayouts\sync.log"
foreach ($server in $servers) {
Add-Content $log "======================================"
Add-Content $log "Syncing to $server at $(Get-Date)"
robocopy $source "\\$server\C$\Sources\AlplaPROD\MasterLayouts" /E /Z /R:2 /W:5 /FFT /XO /TEE /LOG+:$log
Add-Content $log "Finished $server with exit code $LASTEXITCODE"
}