Skip to content

Commit

Permalink
Merge pull request #182 from somzoli/patch-1
Browse files Browse the repository at this point in the history
Update Win_Chocolatey_Manage_Apps_Bulk.ps1
  • Loading branch information
silversword411 authored Sep 20, 2023
2 parents 700ef9b + b64db31 commit 78f1df1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/Win_Chocolatey_Manage_Apps_Bulk.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 values using comma separated.
.EXAMPLE
-Hosts 20 -PackageName googlechrome
-Hosts 30 -PackageName googlechrome,vlc
.EXAMPLE
-Mode upgrade -Hosts 50
.EXAMPLE
Expand All @@ -24,7 +25,7 @@

param (
[Int] $Hosts = "0",
[string] $PackageName,
[string[]] $PackageName,
[string] $Mode = "install"
)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 78f1df1

Please sign in to comment.