While building a Windows 10 Image with Configuration Manager, I wanted to be able to remove most Windows 10 Modern (Metro) apps, yet keep a handful of them.
I wanted to keep the Modern apps for “Alarms & Clock”, “Calculator”, “Camera”, “Photos”, and “Voice Recorder”.
As a part of the final steps of my Task Sequence I ran the following PowerShell (as Administrator) which will uninstall Modern apps for all NEW users logging in to the PC:
Get-AppxProvisionedPackage -Online ` | Where-Object {$_.PackageName -NotMatch "alarms|camera|calculator|photos|soundrecorder|windowsstore"} ` | Remove-AppxProvisionedPackage -Online