Remove all Windows 10 Metro Apps, except the Store

As you probably already know, sysprep will usually fail if the Windows 10 store metro style apps aren’t removed.  Most of my customers want these apps removed anyway.  I did have a request today to have all apps removed, but keep the Windows store just in case something wanted to be added in the future.

 

The normal method of removing the apps also removes the store.  I just tested the following Powershell commands that remove every app, except the store.  This may be useful as it’s difficult to add the store after the fact.

 

Get-appxprovisionedpackage –online | where-object {$_.packagename –notlike “*store*”} | Remove-AppxProvisionedPackage –online

 

Get-AppxPackage -AllUsers | where-object {$_.name –notlike “*store*”} | Remove-AppxPackage

Posted in MDT, MDT 2010, Microsoft Deployment Toolkit, Windows 10 | Tagged , , | Leave a comment

Remove all Windows 10 “Metro” style Apps from Reference Image

Many times Windows 10 sysprep will fail when the built-in Windows 10 apps are present.  The reasons can vary, however most times I just remove them anyway in my reference image.

This will remove most of the junk apps in the Windows 10 start menu, but may not remove the shortcuts themselves.

Use these 2 lines in your reference image task sequence, or run them manually before sysprep.

Get-AppxProvisionedPackage –online | Remove-AppxProvisionedPackage -online

Get-AppxPackage –AllUsers | Remove-AppxPackage

 

While we’re at it, we may as well remove Candy Crush, Twitter, etc… the Consumer Experience apps.  Add this to your task sequence or just edit the base reference image.

Import this registry entry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\CloudContent]
“DisableWindowsConsumerFeatures”=dword:00000001

Posted in MDT, MDT 2010, Powershell, SCCM 2012 | Tagged , , , | Leave a comment