From 3a50b6be8d9b155b901a69453a9bded9a4904c7d Mon Sep 17 00:00:00 2001 From: dals Date: Thu, 12 Jun 2025 12:11:59 +0200 Subject: [PATCH] . --- base.ps1 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/base.ps1 b/base.ps1 index fe5b414..7a82c9d 100644 --- a/base.ps1 +++ b/base.ps1 @@ -390,11 +390,15 @@ if ($manufacturer -match "Dell") { } # Install applications using WinGet -$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)..." + Start-Process powershell -ArgumentList "-Command winget install --id $($app.Id) --silent --accept-package-agreements --accept-source-agreements" +} +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) { @@ -651,4 +655,3 @@ function Confirm-And-Reboot { Confirm-And-Reboot #endregion Main Script -