diff --git a/base.ps1 b/base.ps1 index b56be02..fe5b414 100644 --- a/base.ps1 +++ b/base.ps1 @@ -390,15 +390,11 @@ if ($manufacturer -match "Dell") { } # Install applications using WinGet -foreach ($app in $apps) { - Write-Host "Installing $($app.Name)..." - Start-Process powershell -ArgumentList "-Command winget install --id $($app.Id) --silent --accept-package-agreements --accept-source-agreements" -} +$apps | ForEach-Object -Parallel { + Write-Host "Installing $($_.Name)..." + winget install --id $($_.Id) --silent --accept-package-agreements --accept-source-agreements +} -ThrottleLimit 4 -foreach ($app in $apps) { - Write-Host "Installing $($app.Name)..." - winget install --id $($app.Id) --silent --accept-package-agreements --accept-source-agreements -} # Remove unwanted applications foreach ($app in $delnow) {