Skip to content

Commit

Permalink
Merge pull request #619 from microsoft/dpaul-SetupAssistUpdate
Browse files Browse the repository at this point in the history
SetupAssist June CU Release
  • Loading branch information
dpaulson45 authored Jul 1, 2021
2 parents 47f18b5 + a0de276 commit c4219e8
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 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 All @@ -199,7 +209,7 @@ function Test-ExchangeAdSetupObjects {
Write-Mismatch -ExchVersion "2019" -UpperRange $schemaValue
return
}
Write-ReadyFor -ExchangeVersion "2016" -UpperRange $schemaValue -CU $CU
Write-ReadyFor -ExchangeVersion "2019" -UpperRange $schemaValue -CU $CU
} elseif ($schemaValue -eq 17002) {

if ($MESOValue -eq 13239 -and
Expand All @@ -212,7 +222,17 @@ function Test-ExchangeAdSetupObjects {
Write-Mismatch -ExchVersion "2019" -UpperRange $schemaValue
return
}
Write-ReadyFor -ExchangeVersion "2016" -UpperRange $schemaValue -CU $CU
Write-ReadyFor -ExchangeVersion "2019" -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 c4219e8

Please sign in to comment.