Skip to content

Instantly share code, notes, and snippets.

@Hrissimir
Last active November 6, 2023 12:00
Show Gist options
  • Save Hrissimir/e911c365e60ae493aafa19603c80eecf to your computer and use it in GitHub Desktop.
Save Hrissimir/e911c365e60ae493aafa19603c80eecf to your computer and use it in GitHub Desktop.
# Description:
# This script removes unwanted Apps that come with Windows.
# If you do not want to remove certain Apps, comment out the corresponding lines below.
# This is customized version of Bruce Eckel's remove-default-apps.ps1 script.
# The original script is hosted at: https://github.com/BruceEckel/tools/blob/master/remove-default-apps.ps1
#
# NOTE: Use at your own risk!
#
# Usage:
# * Save the contents of this file as `remove-default-windows-apps.ps1`
# * Update the file contents to reflect your needs (e.g. comment/uncomment relevant apps)
# * Save your changes, close the file and re-open it in order to confirm the changes were actually saved
# * Open PowerShell as Administrator and CD into the folder where you saved the file
# * Execute: Set-ExecutionPolicy Bypass -Scope Process -Force; ./remove-default-windows-apps.ps1
# * Reboot the machine
Write-Output "Uninstalling default apps"
$apps = @(
#"Microsoft.3DBuilder"
"Microsoft.Appconnector"
"Microsoft.BingFinance"
"Microsoft.BingFoodAndDrink"
"Microsoft.BingHealthAndFitness"
"Microsoft.BingNews"
"Microsoft.BingSports"
"Microsoft.BingTravel"
"Microsoft.BingWeather"
"Microsoft.BioEnrollment"
"Microsoft.CommsPhone"
"Microsoft.ConnectivityStore"
#"Microsoft.FreshPaint"
#"Microsoft.GetHelp"
#"Microsoft.Getstarted"
"Microsoft.Messaging"
#"Microsoft.MicrosoftEdge"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.MicrosoftPowerBIForWindows"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.MicrosoftStickyNotes"
"Microsoft.MinecraftUWP"
"Microsoft.MixedReality.Portal"
"Microsoft.NetworkSpeedTest"
#"Microsoft.Office.OneNote"
"Microsoft.Office.Sway"
"Microsoft.OneConnect"
"Microsoft.People"
"Microsoft.ScreenSketch"
"Microsoft.Services.Store.Engagement"
"Microsoft.SkypeApp"
"Microsoft.StorePurchaseApp"
"Microsoft.Wallet"
"Microsoft.Windows.Cortana"
#"Microsoft.Windows.Photos"
#"Microsoft.WindowsAlarms"
#"Microsoft.WindowsCalculator"
#"Microsoft.WindowsCamera"
"microsoft.windowscommunicationsapps"
"Microsoft.WindowsFeedback"
"Microsoft.WindowsFeedbackHub"
#"Microsoft.WindowsMaps"
"Microsoft.WindowsPhone"
"Microsoft.WindowsReadingList"
#"Microsoft.WindowsSoundRecorder"
#"Microsoft.WindowsStore"
"Microsoft.Xbox.TCUI"
"Microsoft.XboxApp"
"Microsoft.XboxGameCallableUI"
"Microsoft.XboxGameOverlay"
"Microsoft.XboxGamingOverlay"
"Microsoft.XboxIdentityProvider"
"Microsoft.XboxSpeechToTextOverlay"
"Microsoft.YourPhone"
"Microsoft.ZuneMusic"
"Microsoft.ZuneVideo"
#"Windows.ContactSupport"
"2FE3CB00.PicsArt-PhotoStudio"
"46928bounde.EclipseManager"
"4DF9E0F8.Netflix"
"6Wunderkinder.Wunderlist"
"89006A2E.AutodeskSketchBook"
"9E2F88E3.Twitter"
"A278AB0D.MarchofEmpires"
"ActiproSoftwareLLC.562882FEEB491"
"ClearChannelRadioDigital.iHeartRadio"
"D52A8D61.FarmVille2CountryEscape"
"D5EA27B7.Duolingo-LearnLanguagesforFree"
"DB6EA5DB.CyberLinkMediaSuiteEssentials"
"Drawboard.DrawboardPDF"
"Facebook.Facebook"
"flaregamesGmbH.RoyalRevolt2"
"Flipboard.Flipboard"
"GAMELOFTSA.Asphalt8Airborne"
"KeeperSecurityInc.Keeper"
"king.com.CandyCrushSaga"
"king.com.CandyCrushSodaSaga"
"king.com.*"
"PandoraMediaInc.29680B314EFC2"
"Playtika.CaesarsSlotsFreeCasino"
"ShazamEntertainmentLtd.Shazam"
"TheNewYorkTimes.NYTCrossword"
"ThumbmunkeysLtd.PhototasticCollage"
"TuneIn.TuneInRadio"
"XINGAG.XING"
)
foreach ($app in $apps) {
Write-Output "Trying to remove AppxPackage: $app"
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
Write-Output "Trying to remove AppXProvisionedPackage: $app"
Get-AppXProvisionedPackage -Online | Where-Object DisplayName -EQ $app | Remove-AppxProvisionedPackage -Online
}
# Prevents "Suggested Applications" returning
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Cloud Content"
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Cloud Content" -Name "DisableWindowsConsumerFeatures" -Value 1 -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment