@davido38 FYI on that script - it will only remove the apps for the logged in user. There are two different AppX commands for removing from the current user’s profile and removing the app from the machine so it’s never reinstalled for any user.
Remove-AppXPackage = removes app for current user
Remove-AppXProvisionedPackage -Online = removing the app from the machine so it’s not reinstalled
I use these two commands before sysprepping:
Get-AppXPackage -AllUsers | Remove-AppXPackage
Get-AppXProvisionedPackage -Online | Remove-AppXProvisionedPackage -Online