Browse Source

remove apps for AllUsers

As of v1709 (Fall Creator's Update), there is a new "-AllUsers" flag for Remove-AppxPackage

https://social.technet.microsoft.com/Forums/en-US/1d096aa8-924b-484a-ae92-7757e3029198/powershell-script-to-remove-apps-doesnt-work-for-all-users?forum=win10itprosetup
pull/132/head
mmikeww 7 years ago
committed by GitHub
parent
commit
4a10fc434e
  1. 2
      scripts/remove-default-apps.ps1

2
scripts/remove-default-apps.ps1

@ -101,7 +101,7 @@ $apps = @(
foreach ($app in $apps) {
Write-Output "Trying to remove $app"
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
Get-AppXProvisionedPackage -Online |
Where-Object DisplayName -EQ $app |

Loading…
Cancel
Save