Windows 10: Fully Remove Default Universal Apps
Purpose
To help others in fully removing the default universal apps for use of deployment in a corporate image.
Table of Contents
Scope
Fully remove Universal Apps from system in order to have a clean image for deployment
Procedure
Remove Universal Apps
1. Copy the following script and save it as a .ps1 file (This script leaves the store intact for NEW user profiles.)
$modernApps = @(@("Microsoft.3DBuilder","microsoft.windowscommunicationsapps","Microsoft.BingFinance","Microsoft.BingNews","Microsoft.BingSports","Microsoft.BingWeather","Microsoft.BingTravel","Microsoft.BingHealthAndFitness","Microsoft.BingFoodAndDrink","Microsoft.People","Microsoft.WindowsPhone","Microsoft.MicrosoftSolitaireCollection","Microsoft.WindowsSoundRecorder","Microsoft.XboxApp","Microsoft.WindowsCamera","Microsoft.ZuneMusic","Microsoft.ZuneVideo","Microsoft.Office.OneNote","Microsoft.SkypeApp","Microsoft.MicrosoftOfficeHub"
foreach ($modernApp in $modernApps) {
Get-AppxProvisionedPackage -Online | Where-Object {$_.PackageName -match $modernApp} | Remove-AppxProvisionedPackage -Online
}
Get-AppxPackage -AllUsers | Remove-AppxPackage
a. You can obviously remove some of the apps listed at the top of the script to leave them on the machine like Microsoft.BingWeather if you want to leave Weather intact
2. Run the following command from Powershell as an Administrator
a. powershell.exe -ExecutionPolicy Bypass -file ".\SomeFile.ps1"
i. “.\SomeFile.ps1” is the name of the file you save the script above as
3. If you need to get into the store after the script is run you may need to delete your profile and let it recreate. All of the default apps will still be removed but Store will return.
Deployment
1. You can deploy this by creating a script and run it during a task sequcne step within MDT or ConfigMgr or Caputre a new .WIM for deployment as part of your base image
Sources