Actualiser powershell/Remove-BuiltInApps.ps1

This commit is contained in:
2026-01-31 09:08:02 +01:00
parent 43d8fadd99
commit 372002635b

View File

@@ -8,16 +8,16 @@ $Packages = @(
)
foreach ($Package in $Packages) {
Write-Host "Uninstalling: $Package" -ForegroundColor Cyan
Write-Host "Uninstalling: $Package" -ForegroundColor Cyan
winget uninstall --name "$Package" --silent --accept-source-agreements
if ($LASTEXITCODE -eq 0) {
Write-Host "$Package successfully uninstalled" -ForegroundColor Green
Write-Host "$Package successfully uninstalled" -ForegroundColor Green
}
else {
Write-Warning "Failed to uninstall $Package (it may already be absent or protected)"
Write-Warning "Failed to uninstall $Package (it may already be absent or protected)"
}
Write-Host ""
}
}