Source: https://www.tenforums.com/tutorials/4689-uninstall-apps-windows-10-a.html
Run these commands in Powershell.
- 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
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
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
If you have problems with some apps, run this:
Get-AppxPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}