My SOE builds have included a script to get rid of all but a few of the user based apps. The script has worked perfectly in all my builds up until Windows10 20H2. If I log into the workstation once the deployment has completed on a 20H2 build, all the user apps are still there... I can execute my script manually on the new target and it kills them off without issue. I hope MS are not forcing me down the app locker GPO path...
This is the script
# Remove most user provisioned apps
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine
Get-AppxPackage -AllUsers | where-object {($_.name –notlike “*store*”) -and ($_.name –notlike "*Calc*") -and ($_.name –notlike "*alarms*") -and ($_.name –notlike "*Camera*") -and ($_.name –notlike "*Sticky*")} | Remove-AppxPackage
Get-appxprovisionedpackage –online | where-object {($_.packagename –notlike “*store*”) -and ($_.packagename –notlike "*Calc*") -and ($_.packagename –notlike "*alarms*") -and ($_.packagename –notlike "*Camera*") -and ($_.packagename –notlike "*Sticky*")} | Remove-AppxProvisionedPackage -online
Anyone having the same or similar issue and can offer a work around?
Thanks in advance..