Skip to content

Instantly share code, notes, and snippets.

@te-online
Last active March 15, 2017 07:56
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 te-online/1acad4cd154734735e86a61be6eb1177 to your computer and use it in GitHub Desktop.
Save te-online/1acad4cd154734735e86a61be6eb1177 to your computer and use it in GitHub Desktop.
MDT Script Series: Removes all built-in and installed apps except Windows Calculator for the user it is run as.
PowerShell -WindowStyle hidden -Command "Get-AppxPackage -user %USERNAME% | where-object {$_.name -notlike '*Microsoft.WindowsCalculator*'} | Remove-AppxPackage"
PowerShell -WindowStyle hidden -Command "Get-AppxPackage | where-object {$_.name -notlike '*Microsoft.WindowsCalculator*'} | Remove-AppxPackage"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment