From db3345c74e4df5e6ab373d4f1712a116de729a28 Mon Sep 17 00:00:00 2001 From: Olivier Date: Sat, 31 Jan 2026 08:53:18 +0100 Subject: [PATCH] Add script --- powershell/Remove-BuiltInApps.ps1 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/powershell/Remove-BuiltInApps.ps1 b/powershell/Remove-BuiltInApps.ps1 index e69de29..102632f 100644 --- a/powershell/Remove-BuiltInApps.ps1 +++ b/powershell/Remove-BuiltInApps.ps1 @@ -0,0 +1,23 @@ +# Requires running as administrator +# Uninstalling Windows applications via winget + +$Packages = @( + "Windows Web Experience Pack", + "Xbox", + "Outlook for Windows" +) + +foreach ($Package in $Packages) { + 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 + } + else { + Write-Warning "⚠ Failed to uninstall $Package (it may already be absent or protected)" + } + + Write-Host "" +} \ No newline at end of file