Skip to content

Instantly share code, notes, and snippets.

@dephekt
Last active January 7, 2017 03:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dephekt/02657e63b6ed720871e036dfa831a760 to your computer and use it in GitHub Desktop.
Save dephekt/02657e63b6ed720871e036dfa831a760 to your computer and use it in GitHub Desktop.

Open Powershell with administrative permissions:

search powershell, right click, run as Administrator

PS C:\Windows\system32> get-appxpackage -AllUsers *onenote* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *messaging* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *sticky* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *soundrecorder* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *maps* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *zune* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *weather* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *people* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *photos* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *camera* | Remove-Appxpackage
PS C:\Windows\system32> get-appxpackage -AllUsers *alarms* | Remove-Appxpackage

Using the following will pull the list of app packages into a text file:

PS C:\Windows\system32> get-appxpackage -AllUsers > C:\Users\Me\Desktop\all_packages.txt

Take care not to dunk on all packages at once, as the unfiltered list includes possibly important subsystems like .NET frameworks.

The following will try to uninstall every Windows App (and will fail on some of them) removing anything not bolted to the ground by Microsoft:

PS C:\Windows\system32> get-appxpackage -AllUsers | Remove-Appxpackage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment