Skip to content

Commit

Permalink
Included June CUs changes for ad/schema values
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulson45 committed Jul 1, 2021
1 parent 47f18b5 commit 4a1644e
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions Setup/SetupAssist/Checks/Test-ExchangeAdLevel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ function Test-ExchangeAdSetupObjects {

$exchLatest = @{}
$exchLatest.Add("2016", [PSCustomObject]@{
CU = "CU20"
UpperRange = 15333
CU = "CU21"
UpperRange = 15334
})
$exchLatest.Add("2019", [PSCustomObject]@{
CU = "CU9"
UpperRange = 17002
CU = "CU10"
UpperRange = 17003
})
$exchLatest.Add("2013", [PSCustomObject]@{
CU = "CU23"
Expand Down Expand Up @@ -185,6 +185,16 @@ function Test-ExchangeAdSetupObjects {
return
}
Write-ReadyFor -ExchangeVersion "2016" -UpperRange $schemaValue -CU $CU
} elseif ($schemaValue -eq 15334) {

if ($MESOValue -eq 13241 -and
$orgValue -eq 16221) {
$CU = "CU21"
} else {
Write-Mismatch -ExchVersion "2016" -UpperRange $schemaValue
return
}
Write-ReadyFor -ExchangeVersion "2016" -UpperRange $schemaValue -CU $CU
}
#Exchange 2019 CU2+
elseif ($schemaValue -eq 17001) {
Expand Down Expand Up @@ -213,6 +223,16 @@ function Test-ExchangeAdSetupObjects {
return
}
Write-ReadyFor -ExchangeVersion "2016" -UpperRange $schemaValue -CU $CU
} elseif ($schemaValue -eq 17003) {

if ($MESOValue -eq 13241 -and
$orgValue -eq 16758) {
$CU = "CU10"
} else {
Write-Mismatch -ExchVersion "2019" -UpperRange $schemaValue
return
}
Write-ReadyFor -ExchangeVersion "2019" -UpperRange $schemaValue -CU $CU
} else {
Write-Mismatch -ExchVersion "2019" -UpperRange $schemaValue
}
Expand Down

0 comments on commit 4a1644e

Please sign in to comment.