Skip to content

Commit 34c48a0

Browse files
authored
Merge pull request #44 from ChadSimmons/patch-2
Update ProductTitles and KnownEditions
2 parents 80fda1d + 1229e28 commit 34c48a0

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

Invoke-DGASoftwareUpdateMaintenance/Plugins/Disabled/Decline-Office365Editions.ps1

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Written By: Bryan Dam
2525
Version 1.0: 10/28/17
2626
Version 2.0: 06/29/18 Fixed issue with selecting multiple editions.
2727
Version 3.0: 06/09/20 Make channels multi-line, add extra channels
28+
Version 4.0: 11/04/22 Update ProductTitles and KnownEditions to support Office 2021/2019 and name change
2829
#>
2930
#Un-comment and add elements to this array for editions you support.
3031
#Note: You must escape any parenthesis with the forward slash. Ex.: "Office 365 Client Update - Monthly Channel \(Targeted\) Version"
@@ -38,25 +39,27 @@ $LatestVersionOnly = $False
3839

3940
#If Microsoft decides to change their naming scheme you will need to update this variable to support the new scheme.
4041
$KnownEditions = @(
41-
"Office 365 Client Update - First Release for Deferred Channel",
42-
"Office 365 Client Update - First Release for Current Channel",
42+
"Office 2019 Perpetual Enterprise Client Update Version Perpetual",
43+
"Office LTSC 2021 Client Update Version Perpetual",
44+
"Microsoft 365 Apps Update - Current Channel Version",
45+
"Microsoft 365 Apps Update - Current Channel \(Preview\) Version",
46+
"Microsoft 365 Apps Update - Monthly Enterprise Channel Version",
47+
"Microsoft 365 Apps Update - Semi-Annual Enterprise Channel Version",
48+
"Microsoft 365 Apps Update - Semi-Annual Enterprise Channel \(Preview\) Version",
49+
"Microsoft 365 Apps Update for Windows 7 - Version",
50+
"Office 365 Client Update for Windows 7 - Version",
51+
"Office 365 Client Update - Current Channel \(Preview\) Version",
4352
"Office 365 Client Update - Current Channel",
4453
"Office 365 Client Update - Deferred Channel",
54+
"Office 365 Client Update - First Release for Current Channel",
55+
"Office 365 Client Update - First Release for Deferred Channel",
4556
"Office 365 Client Update - Monthly Channel Version",
4657
"Office 365 Client Update - Monthly Channel \(Targeted\) Version",
47-
"Office 365 Client Update - Semi-annual Channel Version",
48-
"Office 365 Client Update - Semi-annual Channel \(Targeted\) Version",
49-
"Office 365 Client Update for Windows 7 - Version",
50-
"Office 365 Client Update - Current Channel \(Preview\) Version",
5158
"Office 365 Client Update - Monthly Enterprise Channel Version",
5259
"Office 365 Client Update - Semi-Annual Enterprise Channel Version",
53-
"Office 365 Client Update - Semi-Annual Enterprise Channel \(Preview\) Version",
54-
"Microsoft 365 Apps Update - Current Channel \(Preview\) Version",
55-
"Microsoft 365 Apps Update - Current Channel Version",
56-
"Microsoft 365 Apps Update - Monthly Enterprise Channel Version",
57-
"Microsoft 365 Apps Update - Semi-Annual Enterprise Channel Version",
58-
"Microsoft 365 Apps Update - Semi-Annual Enterprise Channel \(Preview\) Version",
59-
"Microsoft 365 Apps Update for Windows 7 - Version"
60+
"Office 365 Client Update - Semi-Annual Enterprise Channel \(Preview\) Version"
61+
"Office 365 Client Update - Semi-annual Channel Version",
62+
"Office 365 Client Update - Semi-annual Channel \(Targeted\) Version"
6063
)
6164
Function Invoke-SelectUpdatesPlugin {
6265

@@ -66,7 +69,7 @@ Function Invoke-SelectUpdatesPlugin {
6669
Return $DeclineUpdates
6770
}
6871
$maxVersions = @{}
69-
$Office365Updates = ($ActiveUpdates | Where-Object {$_.ProductTitles.Contains('Office 365 Client')})
72+
$Office365Updates = ($ActiveUpdates | Where-Object {$_.ProductTitles.Contains('Office 365 Client') -or $_.ProductTitles.Contains('Microsoft 365 Apps/Office 2019/Office LTSC')})
7073

7174
#Loop through the updates and editions and determine the highest version number per edition.
7275
If ($LatestVersionOnly) {

0 commit comments

Comments
 (0)