craigdchang Posted April 15, 2019 Posted April 15, 2019 Has anyone tried running a script to remove windows 10 application? I have created a script in Software Library: name: Bloatware Gett-AppxPackage *Xbox* | Remove-AppxPackage I approved it and then ran it against a collection. It says that it was successful but the when you run Get-AppxPackage *Xbox* it is still showing up. I tried to run the same command from the workstation in the collection and it did work. I would appreciate any help.
DJ-1701 Posted April 15, 2019 Posted April 15, 2019 Has anyone tried running a script to remove windows 10 application? I have created a script in Software Library: name: Bloatware Gett-AppxPackage *Xbox* | Remove-AppxPackage I approved it and then ran it against a collection. It says that it was successful but the when you run Get-AppxPackage *Xbox* it is still showing up. I tried to run the same command from the workstation in the collection and it did work. I would appreciate any help. I assume the Gett- is a typo and it's actually Get-? I set my script as a Package and told it to run ASAP and every 1 day, just in case Microsoft reinstall the packages as I found the did with at least one previous update.
DJ-1701 Posted April 15, 2019 Posted April 15, 2019 I have two files in my Package, both in the same directory, the package is instructed to run the Batch File. AppRemove.bat (Batch File) If Exist "C:\Windows\ImmersiveControlPanel" powershell.exe -noprofile -executionpolicy bypass -file "%~dp0AppRemove.ps1" AppRemove.ps1 (PowerShell) # Remove Useless Apps. Get-ProvisionedAppxPackage -online ` | where-object {$_.DisplayName -like "*xbox*" ` -or $_.DisplayName -like "*zune*"} ` | Remove-ProvisionedAppxPackage -online
craigdchang Posted April 15, 2019 Author Posted April 15, 2019 You are correct that was a typo. I tried your suggestion and it did not work. I tried to run it direct and it did not work either.
free780 Posted April 15, 2019 Posted April 15, 2019 Also modern apps are installed per user. You can unprovision them before anyone logs on. If you need to strip them out and retain the profiles you need to use Remove-Appxpackage in the user context for each user. If you have the Store setup for education you can unprovision apps and remove without scripts. 1
1TF0rward Posted May 3, 2019 Posted May 3, 2019 You can disable them in Group Policy? They won't be removed though. I'm yet to see how to do this without causing upset.
free780 Posted May 3, 2019 Posted May 3, 2019 Depends if you have SCCM in place. You can unprovision with SCCM. Or you have to runa nlogon/logoff script with Remove-Package.
craigdchang Posted May 3, 2019 Author Posted May 3, 2019 I have been able to remove some of these apps but I have to run the power shell script from power shell on the device manually as an administrator.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now