Run remote repadmin without server name
This commit is contained in:
@@ -274,6 +274,9 @@ function Invoke-Replication {
|
||||
if ($remoteCmd -match "(?i)\brepadmin\b" -and $remoteCmd -match "(?i)\bsyncall\b") {
|
||||
$remoteCmd = [regex]::Replace($remoteCmd, "(?i)\brepadmin\s+/syncall\s+\S+", "repadmin /syncall")
|
||||
}
|
||||
$remoteCmd = [regex]::Replace($remoteCmd, "(?i)\brepadmin\s+/syncall\b", "repadmin /syncall")
|
||||
$remoteCmd = $remoteCmd.Replace("/AdeP", "/AedP")
|
||||
$remoteCmd = [regex]::Replace($remoteCmd, "\s{2,}", " ").Trim()
|
||||
if ([string]::IsNullOrWhiteSpace($remoteCmd)) {
|
||||
& $Log "Replication skipped: empty command for $server."
|
||||
continue
|
||||
@@ -638,7 +641,7 @@ $y += 70 + $gap
|
||||
|
||||
Add-Label "Replication command ({server} optional)" $xLabel $y $labelWidth $rowHeight
|
||||
$replicationCmdBox = Add-TextBox $xInput $y $inputWidth $rowHeight $false
|
||||
$replicationCmdBox.Text = "repadmin /syncall {server} /AdeP"
|
||||
$replicationCmdBox.Text = "repadmin /syncall /AedP"
|
||||
$y += $rowHeight + $gap
|
||||
|
||||
Add-Label "Replication wait (seconds)" $xLabel $y $labelWidth $rowHeight
|
||||
|
||||
Reference in New Issue
Block a user