From b1cb42af34b5228d625a523e3de29dfdf90b1496 Mon Sep 17 00:00:00 2001 From: somzoli <34423715+somzoli@users.noreply.github.com> Date: Tue, 19 Sep 2023 13:04:18 +0200 Subject: [PATCH 1/3] Update Win_Chocolatey_Manage_Apps_Bulk.ps1 Added foreach to upgrade option for use multiple software upgrade --- scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 b/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 index 887670e6..30566e09 100644 --- a/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 +++ b/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 @@ -8,9 +8,10 @@ .PARAMETER Hosts Use this to specify the number of computer(s) you're running the command on. This will dynamically introduce waits to try and minimize the chance of hitting rate limits (20/min) on the chocolatey.org site: Hosts 20 .PARAMETER PackageName - Use this to specify which software to install eg: PackageName googlechrome + Use this to specify which software('s) to install eg: PackageName googlechrome. You can use multiple value with semicolon separated. .EXAMPLE -Hosts 20 -PackageName googlechrome + -Hosts 30 -PackageName googlechrome,vlc .EXAMPLE -Mode upgrade -Hosts 50 .EXAMPLE @@ -24,7 +25,7 @@ param ( [Int] $Hosts = "0", - [string] $PackageName, + [string[]] $PackageName, [string] $Mode = "install" ) @@ -55,7 +56,10 @@ if ($Mode -eq "upgrade") { choco upgrade -y all } else { - choco upgrade $PackageName -y + foreach ($package in $PackageName) + { + choco upgrade $package -y + } } # Write-Output "Running upgrade" Exit 0 From b6b2eb992fd4ebb791a42d88763d7db49d234b7a Mon Sep 17 00:00:00 2001 From: somzoli <34423715+somzoli@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:12:16 +0200 Subject: [PATCH 2/3] Update Win_Chocolatey_Manage_Apps_Bulk.ps1 fixed comma in comments --- scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 b/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 index 30566e09..44ea0db8 100644 --- a/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 +++ b/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 @@ -8,7 +8,7 @@ .PARAMETER Hosts Use this to specify the number of computer(s) you're running the command on. This will dynamically introduce waits to try and minimize the chance of hitting rate limits (20/min) on the chocolatey.org site: Hosts 20 .PARAMETER PackageName - Use this to specify which software('s) to install eg: PackageName googlechrome. You can use multiple value with semicolon separated. + Use this to specify which software('s) to install eg: PackageName googlechrome. You can use multiple value with comma separated. .EXAMPLE -Hosts 20 -PackageName googlechrome -Hosts 30 -PackageName googlechrome,vlc From b64db3150a1fb9a004b1537d8570c8a9112a3383 Mon Sep 17 00:00:00 2001 From: silversword411 Date: Wed, 20 Sep 2023 10:16:14 -0400 Subject: [PATCH 3/3] Update Win_Chocolatey_Manage_Apps_Bulk.ps1 --- scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 b/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 index 44ea0db8..fbc18d53 100644 --- a/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 +++ b/scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1 @@ -8,7 +8,7 @@ .PARAMETER Hosts Use this to specify the number of computer(s) you're running the command on. This will dynamically introduce waits to try and minimize the chance of hitting rate limits (20/min) on the chocolatey.org site: Hosts 20 .PARAMETER PackageName - Use this to specify which software('s) to install eg: PackageName googlechrome. You can use multiple value with comma separated. + Use this to specify which software('s) to install eg: PackageName googlechrome. You can use multiple values using comma separated. .EXAMPLE -Hosts 20 -PackageName googlechrome -Hosts 30 -PackageName googlechrome,vlc