Actualiser powershell/Remove-BuiltInApps.ps1
This commit is contained in:
@@ -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 ""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user