.
This commit is contained in:
13
base.ps1
13
base.ps1
@@ -390,11 +390,15 @@ if ($manufacturer -match "Dell") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Install applications using WinGet
|
# Install applications using WinGet
|
||||||
$apps | ForEach-Object -Parallel {
|
foreach ($app in $apps) {
|
||||||
Write-Host "Installing $($_.Name)..."
|
Write-Host "Installing $($app.Name)..."
|
||||||
winget install --id $($_.Id) --silent --accept-package-agreements --accept-source-agreements
|
Start-Process powershell -ArgumentList "-Command winget install --id $($app.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
|
# Remove unwanted applications
|
||||||
foreach ($app in $delnow) {
|
foreach ($app in $delnow) {
|
||||||
@@ -651,4 +655,3 @@ function Confirm-And-Reboot {
|
|||||||
Confirm-And-Reboot
|
Confirm-And-Reboot
|
||||||
|
|
||||||
#endregion Main Script
|
#endregion Main Script
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user