Skip to content

Commit

Permalink
Allow Rollback to work on Pre March SU
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulson45 committed Mar 12, 2024
1 parent 655373b commit a4e483f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,12 @@ begin {
Rollback = $Rollback
}

if ($processedExchangeServers.ValidExchangeServerFqdn.Count -ge 1) {
if ($Rollback -and $processedExchangeServers.OutdatedBuildExchangeServerFqdn.Count -gt 0) {
Write-Host "Adding the Server(s) back into the list to process because we are attempting to rollback: $([string]::Join(", ", $processedExchangeServers.OutdatedBuildExchangeServerFqdn))"
$params.ComputerName = $processedExchangeServers.OnlineExchangeServerFqdn
}

if ($params.ComputerName.Count -ge 1) {
Write-Host "Running the configuration change against the following server(s): $([string]::Join(", ", $params.ComputerName))"
Invoke-TextExtractionOverride @params
} else {
Expand Down

0 comments on commit a4e483f

Please sign in to comment.