gerei.blogg.se

Powershell script to uninstall skype for business
Powershell script to uninstall skype for business





powershell script to uninstall skype for business

What is happening is that after I exit audit mode and make my image for deployment, after the image is pulled to the machine the Administrator account continues to have the appropriate applications removed, but any other account that I sign in as, my own or the user who will be using the system, has all of the apps that were removed from under Administrator.Īt this point I have a script that based on my understanding is supposed to be applying to all users that is only applying to the current account which at this point if I were to deploy systems would require having to make sure that the script gets run on first login for anyone that signs into the system. Thanks!Īudit Mode is a step in my imaging process where I'm attempting to run this script, which processes and the additional applications vanish from the Administrator account which is running Audit Mode. 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. *Note the Get-AppxPackage line is repeated 20 some times for different packages such as *3d*, *officehub*, *skypeapp*, etc.)Īgain, 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. Get-AppxPackage *xbox* -AllUsers | Remove-AppxPackage

powershell script to uninstall skype for business

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.

powershell script to uninstall skype for business

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. 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. 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.







Powershell script to uninstall skype for business