Last active
March 15, 2017 07:56
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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