← Intune

🍬 Remove Bloatware

Intune Platform Script · Removes preinstalled junk apps for all users on the device
Runs as SYSTEM — required to remove provisioned packages from the device image. If you run this as the logged-on user, Remove-AppxProvisionedPackage will fail silently and new user accounts will still get the bloat.
Two commands per app: Remove-AppxPackage kills it for existing users, Remove-AppxProvisionedPackage removes it from the Windows image so new accounts don't get it either.
Script
1
Define bloatware list array
Edit this list to match what you want gone. Add or remove package names as needed.
# Bloatware package names to remove $apps = @( "Microsoft.BingWeather", "Microsoft.GetHelp", "Microsoft.Getstarted", "Microsoft.MicrosoftOfficeHub", "Microsoft.MicrosoftSolitaireCollection", "Microsoft.People", "Microsoft.WindowsFeedbackHub", "Microsoft.Xbox.TCUI", "Microsoft.XboxApp", "Microsoft.XboxGameOverlay", "Microsoft.XboxGamingOverlay", "Microsoft.XboxIdentityProvider", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo", "Microsoft.WindowsMaps", "Microsoft.Messaging", "Microsoft.SkypeApp", "king.com.CandyCrushSaga", "king.com.CandyCrushFriends", "Microsoft.3DBuilder", "Microsoft.Office.OneNote" )
2
Remove for all users + deprovision main
Hits existing user accounts AND removes from the device image for future users.
# Remove from existing users and deprovision from device image foreach ($app in $apps) { Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object DisplayName -EQ $app | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue }
Full script — upload this to Intune deploy
Combined, ready to paste into your .ps1 platform script file.
# Remove bloatware for all users and deprovision from device image $apps = @( "Microsoft.BingWeather", "Microsoft.GetHelp", "Microsoft.Getstarted", "Microsoft.MicrosoftOfficeHub", "Microsoft.MicrosoftSolitaireCollection", "Microsoft.People", "Microsoft.WindowsFeedbackHub", "Microsoft.Xbox.TCUI", "Microsoft.XboxApp", "Microsoft.XboxGameOverlay", "Microsoft.XboxGamingOverlay", "Microsoft.XboxIdentityProvider", "Microsoft.ZuneMusic", "Microsoft.ZuneVideo", "Microsoft.WindowsMaps", "Microsoft.Messaging", "Microsoft.SkypeApp", "king.com.CandyCrushSaga", "king.com.CandyCrushFriends", "Microsoft.3DBuilder", "Microsoft.Office.OneNote" ) foreach ($app in $apps) { Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue Get-AppxProvisionedPackage -Online | Where-Object DisplayName -EQ $app | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue }
Intune Platform Script Settings
Run this script using the logged on credentials No
Enforce script signature check No
Run script in 64-bit PowerShell host Yes