W10 1803 Education - Remove-AppxProvisionedPackage fails with Access Denied 0x80070005

Discussion in 'Windows 10' started by sebus, Jun 10, 2018.

  1. sebus

    sebus MDL Guru

    Jul 23, 2008
    5,890
    1,778
    180
  2. sebus

    sebus MDL Guru

    Jul 23, 2008
    5,890
    1,778
    180
    Somehow it worked fine with

    Code:
    $Packages = 'Microsoft.GetHelp','Microsoft.Getstarted','Microsoft.Messaging','Microsoft.Microsoft3DViewer','Microsoft.MicrosoftStickyNotes','Microsoft.OneConnect','Microsoft.People','Microsoft.SkypeApp,'Microsoft.Wallet','Microsoft.WindowsFeedbackHub','Microsoft.WindowsMaps','Microsoft.XboxApp','Microsoft.XboxIdentityProvider'
    
    Get-AppxProvisionedPackage -Online | Where-Object DisplayName -In $Packages | Remove-ProvisionedAppxPackage -Online | Out-Null