locked
mine does nt work RRS feed

  • Question

  •  Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLo
    cation)\AppXManifest.xml"}
    Get-AppXPackage : Access is denied.
    Access is denied.
    At line:1 char:1
    + Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopm ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [Get-AppxPackage], UnauthorizedAccessException
        + FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.GetApp
       xPackageCommand
    Friday, December 2, 2016 5:28 PM

All replies

  • Are you running that script as Administrator? This seems like a simple privelege issue - try opening PowerShell as Admin by right-clicking it and selecting "Run as Administrator", then input your command.

    Hope this helps!


    Rory Fewell

    (CCNA, MOS)

    Windows Server 2012 and Networking Fundamentals Apprentice

    Visit my site!

    View me on GitHub!

    Tuesday, December 13, 2016 11:19 AM