Jump to content

Recommended Posts

Posted

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.

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

Posted

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

Posted
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.
  • Thanks 1
  • 3 weeks later...
Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...