Skip to content

Instantly share code, notes, and snippets.

@moxwel
Last active August 27, 2023 13:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moxwel/7793b2d70d8ce90676e15ee11a8c6bcd to your computer and use it in GitHub Desktop.
Save moxwel/7793b2d70d8ce90676e15ee11a8c6bcd to your computer and use it in GitHub Desktop.
Remove bloatware from Windows installations

Remove Windows 10/11 Bloatware

Source: https://www.tenforums.com/tutorials/4689-uninstall-apps-windows-10-a.html

Run these commands in Powershell.


📃 Show Installed Apps

  • User only:
Get-AppxPackage | Select-Object name,installlocation
  • Provisioned Apps for new users:

NOTE: These apps will be installed when creating new user.

Get-AppxProvisionedPackage –online | Select-Object displayname,installlocation

✅ Recommended debloat

These apps could be useful and maybe you don't want them to be removed:

notepad|calculator|mspaint|screensketch|stickynotes|alarms|camera|soundrecorder|terminal|windowssubsystem|ubuntu|DesktopAppInstaller|SecHealthUI|store|lenovo|realtek|dolby|elevoc|intel|nvidia|amd|edge
  • UNINSTALL ALL APPS except the apps above:

💡 TIP: Modify the -notmatch "(...)" section to exclude other apps. Use the "Show Installed Apps" command to get the names.

Get-AppxPackage | Where-Object {$_.name -notmatch "(notepad|calculator|mspaint|screensketch|stickynotes|alarms|camera|soundrecorder|terminal|windowssubsystem|ubuntu|DesktopAppInstaller|SecHealthUI|store|lenovo|realtek|dolby|elevoc|intel|nvidia|amd|edge)"} | Remove-AppxPackage

🗑 Minimal installation

Run after clean-installing Windows.

  • UNINSTALL ALL APPS except Microsoft Store:

🛑 WARNING: This will remove EVERY app except Store. Use with caution.

Get-AppxPackage | Where-Object {$_.name -notmatch "(DesktopAppInstaller|SecHealthUI|store)"} | Remove-AppxPackage
  • UNINSTALL ALL APPS except Microsoft Store for new users:

NOTE: This does not remove currently installed apps. When creating new users, bloatware apps will not be installed.

Get-AppxProvisionedPackage –online | Where-Object {$_.displayname -notmatch "(DesktopAppInstaller|SecHealthUI|store)"} | Remove-AppxProvisionedPackage -online

🔁 Re-Register apps (troubleshoot)

If you have problems with some apps, run this:

Get-AppxPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

See also

remove_bloatware_windows_list.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment