|
9 | 9 | Choose Office channel: 2019, 2021, 2024, and 365 |
10 | 10 |
|
11 | 11 | .PARAMETER Components |
12 | | - Choose Office components: Access, OneDrive, Outlook, Word, Excel, PowerPoint, Teams |
| 12 | + Choose Office components: Access, OneDrive, Outlook, Word, Excel, PowerPoint, Teams, OneNote, Publisher |
13 | 13 |
|
14 | 14 | .EXAMPLE Download Office 2019 with the Word, Excel, PowerPoint components |
15 | 15 | Download.ps1 -Branch ProPlus2019Retail -Channel Current -Components Word, Excel, PowerPoint |
|
46 | 46 | $Channel, |
47 | 47 |
|
48 | 48 | [Parameter(Mandatory = $true)] |
49 | | - [ValidateSet("Access", "OneDrive", "Outlook", "Word", "Excel", "PowerPoint", "Teams")] |
| 49 | + [ValidateSet("Access", "OneDrive", "Outlook", "Word", "Excel", "OneNote", "Publisher", "PowerPoint", "Teams")] |
50 | 50 | [string[]] |
51 | 51 | $Components |
52 | 52 | ) |
@@ -208,6 +208,16 @@ foreach ($Component in $Components) |
208 | 208 | $Node = $Config.SelectSingleNode("//ExcludeApp[@ID='PowerPoint']") |
209 | 209 | $Node.ParentNode.RemoveChild($Node) |
210 | 210 | } |
| 211 | + OneNote |
| 212 | + { |
| 213 | + $Node = $Config.SelectSingleNode("//ExcludeApp[@ID='OneNote']") |
| 214 | + $Node.ParentNode.RemoveChild($Node) |
| 215 | + } |
| 216 | + Publisher |
| 217 | + { |
| 218 | + $Node = $Config.SelectSingleNode("//ExcludeApp[@ID='Publisher']") |
| 219 | + $Node.ParentNode.RemoveChild($Node) |
| 220 | + } |
211 | 221 | Teams |
212 | 222 | { |
213 | 223 | Write-Information -MessageData "" -InformationAction Continue |
|
0 commit comments