Last active
November 16, 2024 08:42
-
-
Save wincmd64/5063e1c2567bf97cbcac798528a293e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uninstall some built-in UWP apps | |
# Tested on Win 10 22H2 (oct. 2024) | |
# Tested on Win 11 24H2 | |
# List of installed apps: Get-AppxPackage | Select Name, PackageFullName | |
$appNames = @( | |
"Microsoft.Copilot", | |
"Microsoft.549981C3F5F10", # Cortana | |
"Microsoft.WindowsFeedbackHub", | |
"Microsoft.MicrosoftOfficeHub", # Office 365 | |
"microsoft.windowscommunicationsapps", # Outlook (Mail and Calendar) | |
"Microsoft.MicrosoftStickyNotes", | |
"Microsoft.Getstarted", # Tips | |
"Microsoft.MixedReality.Portal", | |
"Microsoft.BingWeather", | |
"Microsoft.Office.OneNote", | |
"Microsoft.MSPaint", # Paint 3D | |
"Microsoft.YourPhone", | |
"Microsoft.SkypeApp", | |
"Microsoft.MicrosoftSolitaireCollection", | |
"Microsoft.WindowsMaps", | |
"Microsoft.XboxApp", | |
"Microsoft.Microsoft3DViewer", | |
"Microsoft.GetHelp", | |
# Win 11: | |
"MSTeams", | |
"Microsoft.BingNews", | |
"Microsoft.PowerAutomateDesktop", | |
"Microsoft.GamingApp" | |
) | |
foreach ($app in $appNames) { | |
try { | |
$package = Get-AppxPackage $app -ErrorAction Stop | |
if ($package) { | |
Remove-AppxPackage $package -ErrorAction Stop | |
Write-Output "$app - deleted" | |
} else { | |
Write-Output "$app - not found" | |
} | |
} catch { | |
Write-Output "$app - error deleting" | |
} | |
} | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment