Script-Remove-Bloatware
Script: Remove Bloatware
Purpose
Removes pre-installed Windows apps: Xbox, Solitaire, Clipchamp, Gaming App
Deployment Settings
| Setting | Value |
|---|---|
| Run as | System (No) |
| 64-bit PowerShell | Yes |
| Signature check | No |
| Assigned to | All Devices |
Script: Remove-Bloatware.ps1
<#
.SYNOPSIS
Removes bloatware apps from Windows 11
.DESCRIPTION
Removes Xbox, Gaming App, Solitaire, Clipchamp
Also removes provisioned packages to prevent reinstall
.NOTES
BCM - Deploy via Intune Platform Scripts
Run as SYSTEM
#>
$AppsToRemove = @(
"Microsoft.XboxApp"
"Microsoft.XboxGameOverlay"
"Microsoft.XboxGamingOverlay"
"Microsoft.XboxIdentityProvider"
"Microsoft.XboxSpeechToTextOverlay"
"Microsoft.GamingApp"
"Microsoft.MicrosoftSolitaireCollection"
"Clipchamp.Clipchamp"
"Microsoft.Xbox.TCUI"
)
foreach ($App in $AppsToRemove) {
# Remove for all users
Get-AppxPackage -Name $App -AllUsers | Remove-AppxPackage -AllUsers -ErrorAction SilentlyContinue
# Remove provisioned package (prevents reinstall for new users)
Get-AppxProvisionedPackage -Online | Where-Object DisplayName -eq $App | Remove-AppxProvisionedPackage -Online -ErrorAction SilentlyContinue
}
Write-Host "Bloatware removal complete"
What Gets Removed
- Xbox App
- Xbox Game Bar
- Xbox Identity Provider
- Xbox Speech to Text
- Gaming App
- Microsoft Solitaire Collection
- Clipchamp
Notes
- Runs once per device
- Provisioned package removal prevents apps returning for new user profiles
- Some Xbox components may be needed for Game Pass - not applicable for BCM
Related
- [[Deploy-PowerShell-Script]]
- [[BCM-Policies-Overview]]