New
#1
Bloatware Removal Script
I'm working on a PowerShell script to work with Windows 10 Enterprise and my imaging tools with the intent of creating a Windows 10 image for my workplace, and remove the bloatware that comes preinstalled. For example, I can't figure out why Microsoft thinks that access to a user's Xbox Live account is required on the Enterprise (business oriented) build of a system, yet they don't make an easy way to remove this and the other bloatware applications. What I am running into at this point is that my script gets executed as my installation user and only applies to that user, where I believe that I am using the switches that are supposed to make it apply to AllUsers. The goal is to have the script run once at imaging/installation and any user can then sign in and they won't see the extra bloatware apps that we deemed are inappropriate to our workplace.
My script is as follows:
Import-Module Appx
Import-Module Dism
Get-AppxPackage *xbox* -AllUsers | Remove-AppxPackage
*Note the Get-AppxPackage line is repeated 20 some times for different packages such as *3d*, *officehub*, *skypeapp*, etc...)
Again, what is happening right now is that the script gets executed but only gets applied to the current user where as the script shows with the -AllUsers it is intended to apply to any account. I'm not a PowerShell scripting expert and would appreciate any pointers as to what I am missing to make this apply so that I can sign in with any other account to the clean interface that I am trying to configure without having to run this script for each of my user accounts. Thanks!