How to Use Windows PowerShell ‘Get-AppxPackage’ to Remove Bloatware

The Problem with Windows 11 Bloatware

When you purchase a new Windows 11 computer or deploy a fresh installation, the Start Menu is heavily cluttered. It comes pre-installed with Xbox overlays, the Zune Music app, 3D Builder, third-party antivirus trials, and various “Candy Crush” style games.

For an enterprise IT department, deploying a laptop with Xbox gaming overlays is unacceptable. However, attempting to right-click and “Uninstall” these applications one by one across 500 company laptops is a logistical nightmare. Furthermore, Microsoft intentionally hides the “Uninstall” button for several built-in apps.

To completely sanitize a Windows environment programmatically, administrators use two incredibly powerful PowerShell cmdlets: Get-AppxPackage and Remove-AppxPackage.

1. Auditing Installed Packages

Modern Windows applications (the ones downloaded from the Microsoft Store or pre-installed in the Start Menu) are called AppX packages. They do not show up in the legacy “Add/Remove Programs” Control Panel.

To see a massive list of every single AppX package installed on the computer, open PowerShell as an Administrator and type:

Get-AppxPackage

The output is overwhelming. To make it readable, you should filter the output to only show the actual names of the software.

Get-AppxPackage | Select-Object Name, PackageFullName

2. Finding Specific Bloatware

If you want to find the exact internal name for the Xbox application so you can destroy it, use wildcards (*).

Get-AppxPackage *xbox*

This will return packages like Microsoft.XboxApp and Microsoft.XboxGamingOverlay.

3. The Execution: Removing the Software

Once you identify the package you want to kill, you simply pipe the result directly into the Remove-AppxPackage command.

To instantly and silently uninstall the Xbox App from the current user account:

Get-AppxPackage *xboxapp* | Remove-AppxPackage

4. The Enterprise Nuke: Removing from ALL Users

The command above only removes the app for the person currently logged in. If a new employee logs into that laptop tomorrow, Windows will instantly reinstall the Xbox app for them.

To permanently eradicate the software from every existing user profile on the machine, you must use the -AllUsers flag.

Get-AppxPackage -AllUsers *xboxapp* | Remove-AppxPackage -AllUsers

5. Preventing Future Installations (Provisioned Packages)

Even if you delete the app from all users, Windows keeps a hidden “master installer” file on the hard drive. If you create a brand new user account, Windows unpacks that master file and installs the bloatware anyway.

To destroy the master installer, you must query the ProvisionedAppxPackage list.

Get-AppxProvisionedPackage -Online | Where-Object DisplayName -like "*xboxapp*" | Remove-AppxProvisionedPackage -Online

Once you run this command, the software is permanently burned out of the operating system image. The only way to get it back is to manually download it from the Microsoft Store.

Conclusion

The AppxPackage suite of cmdlets is the ultimate weapon against Windows bloatware. By chaining these commands together into a single “Decrapify” script, IT administrators can instantly transform a consumer-grade Windows installation into a sterile, professional workstation in a matter of seconds.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.