SCCM 2012 – Windows 10 Travails

Removing Windows 10 tiles

To remove Windows 10 bloatware such as XBOX, Windows Store, People and ZuneVideo.

Microsoft have provided two PowerShell cmdlets to do the work for you:

  • Remove-AppxPackage
    • removes for current user
  • Remove-AppxPriovisionedPackage
    • removes for any potentially new users who get created!, equivalent to the default user

For example to remove the windows store:

Get-AppxPackage -allusers | Where-object {$_.name -like "*windowsstore*"} | Remove-AppxPackage
 Get-Appxprovisionedpackage -online | where-object {$_.displayname -like "*windowsstore*"} | Remove-appxprovisionedpackage -online

If you want to do this using the “Run PowerShell Script” SCCM Task Sequence step, then it will not work, as SCCM will call the x86 Powershell.exe file. Instead, you will need to run a command line Task Sequence step instead:

C:\windows\sysnative\WindowsPowershell\v1.0\powershell.exe -setexecutionpolicy bypass -file .\Capture.ps1

 

Advertisements