From a4e483ffce5ac1195ab42e0067794c51a06e0afb Mon Sep 17 00:00:00 2001 From: David Paulson Date: Mon, 11 Mar 2024 13:49:00 -0500 Subject: [PATCH] Allow Rollback to work on Pre March SU --- .../ConfigureFipFsTextExtractionOverrides.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Security/src/ConfigureFipFsTextExtractionOverrides/ConfigureFipFsTextExtractionOverrides.ps1 b/Security/src/ConfigureFipFsTextExtractionOverrides/ConfigureFipFsTextExtractionOverrides.ps1 index 098df8a2d0..d50592bf96 100644 --- a/Security/src/ConfigureFipFsTextExtractionOverrides/ConfigureFipFsTextExtractionOverrides.ps1 +++ b/Security/src/ConfigureFipFsTextExtractionOverrides/ConfigureFipFsTextExtractionOverrides.ps1 @@ -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 {