@@ -25,6 +25,7 @@ Written By: Bryan Dam
25
25
Version 1.0: 10/28/17
26
26
Version 2.0: 06/29/18 Fixed issue with selecting multiple editions.
27
27
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
28
29
#>
29
30
# Un-comment and add elements to this array for editions you support.
30
31
# 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
38
39
39
40
# If Microsoft decides to change their naming scheme you will need to update this variable to support the new scheme.
40
41
$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" ,
43
52
" Office 365 Client Update - Current Channel" ,
44
53
" 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" ,
45
56
" Office 365 Client Update - Monthly Channel Version" ,
46
57
" 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" ,
51
58
" Office 365 Client Update - Monthly Enterprise Channel Version" ,
52
59
" 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"
60
63
)
61
64
Function Invoke-SelectUpdatesPlugin {
62
65
@@ -66,7 +69,7 @@ Function Invoke-SelectUpdatesPlugin {
66
69
Return $DeclineUpdates
67
70
}
68
71
$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 ' ) })
70
73
71
74
# Loop through the updates and editions and determine the highest version number per edition.
72
75
If ($LatestVersionOnly ) {
0 commit comments