Browse Source

Merge pull request #292 from bknickelbine/patch-1

Update remove-default-apps.ps1
pull/293/head
Alex Hirsch 3 years ago
committed by GitHub
parent
commit
a699b48597
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      scripts/remove-default-apps.ps1

5
scripts/remove-default-apps.ps1

@ -132,13 +132,14 @@ $apps = @(
"Microsoft.Advertising.Xaml"
)
$appxprovisionedpackage = Get-AppxProvisionedPackage -Online
foreach ($app in $apps) {
Write-Output "Trying to remove $app"
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage -AllUsers
Get-AppXProvisionedPackage -Online |
Where-Object DisplayName -EQ $app |
($appxprovisionedpackage).Where( {$_.DisplayName -EQ $app}) |
Remove-AppxProvisionedPackage -Online
}

Loading…
Cancel
Save