All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m41s
12 lines
494 B
PowerShell
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"
|
|
} |