Forum Discussion
Removing UWP apps from the 1709 Build
14 Replies
When needed we typically use a PowerShell script during the build and capture task sequence that removes all apps and on-demand features except the ones we explicitly specify. I like this script from Nickolaj: http://www.scconfigmgr.com/2016/03/01/remove-built-in-apps-when-creating-a-windows-10-reference-image/
Just be aware about removing is one thing, putting stuff back at a later time may be impossible without re-imaging the machine.
- Markus KlockerCopper Contributor
So with SCCM you possibly have a WSUS in place.
I figured that the cmdlet "Get-WindowsCapability -online" symply fails and therefore "Quickassist" and "ContactSupport" can't be removedin 1709.
- DiogoSousaIron Contributor
Hello and greetings from Portugal!
For me, the best way to completely get rid of the apps and make sure they don't appear again is by running a powershell script during custom image creation and removing both app and provisioned package.
Here some examples for Windows 10 Enterprise:
#Microsoft Bing Weather Remove-AppxPackage -Package Microsoft.BingWeather_4.21.2492.0_neutral_~_8wekyb3d8bbwe | Out-Null Remove-AppxProvisionedPackage -PackageName Microsoft.BingWeather_4.21.2492.0_neutral_~_8wekyb3d8bbwe -Online | Out-Null #Microsoft Tips (Get Started) Remove-AppxPackage -Package Microsoft.Getstarted_5.11.1641.0_neutral_~_8wekyb3d8bbwe | Out-Null Remove-AppxProvisionedPackage -PackageName Microsoft.Getstarted_5.11.1641.0_neutral_~_8wekyb3d8bbwe -Online | Out-Null #Microsoft Mail and Calendar Remove-AppxPackage -Package microsoft.windowscommunicationsapps_2015.8241.41275.0_neutral_~_8wekyb3d8bbwe | Out-Null Remove-AppxProvisionedPackage -PackageName microsoft.windowscommunicationsapps_2015.8241.41275.0_neutral_~_8wekyb3d8bbwe -Online | Out-Null #Microsoft Messaging Remove-AppxPackage -Package Microsoft.Messaging_2017.815.2052.0_neutral_~_8wekyb3d8bbwe | Out-Null Remove-AppxProvisionedPackage -PackageName Microsoft.Messaging_2017.815.2052.0_neutral_~_8wekyb3d8bbwe -Online | Out-Null #Microsoft Office Hub (Get Office) Remove-AppxPackage -Package Microsoft.MicrosoftOfficeHub_2017.715.118.0_neutral_~_8wekyb3d8bbwe | Out-Null Remove-AppxProvisionedPackage -PackageName Microsoft.MicrosoftOfficeHub_2017.715.118.0_neutral_~_8wekyb3d8bbwe -Online | Out-Null #Microsoft Office OneNote Remove-AppxPackage -Package Microsoft.Office.OneNote_2015.8366.57611.0_neutral_~_8wekyb3d8bbwe | Out-Null Remove-AppxProvisionedPackage -PackageName Microsoft.Office.OneNote_2015.8366.57611.0_neutral_~_8wekyb3d8bbwe -Online | Out-Null
- Clifton HughesFormer Employee
Hi, were you able to use this script you referenced in your comment on Windows 10 1709?
- Matthew LaneBrass Contributor
I created a group policy preference for the Computer
Preferences>Windows Settings > Folders > and delete
C:\Windows\SystemApps\ContactSupport_cw5n1h2txyewy
C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy
C:\Windows\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
etc....
For customers which use Intune, I setup the business store, added the apps you want to remove to this business storen and have them synced to Intune.
In Intune assign the apps with status remove and soon after enrolling in Intune, Intune will remove the apps.- sjthoms121Copper Contributor
Really the best way I have found is to mount the wim and remove those packages manually. No its not great but it works the best. Once you have it documented, it doesn't take too long.