Get-Appxpackage Access is Denied: How to Quickly Fix It

To deal with this error, ensure the required service is running

by Loredana Harsana
Loredana Harsana
Loredana Harsana
Managing Editor
Loredana is a passionate writer with a keen interest in PC software and technology. She started off writing about mobile phones back when Samsung Galaxy S II was... read more
Reviewed by Alex Serban
Alex Serban
Alex Serban
Windows Server & Networking Expert
After moving away from the corporate work-style, Alex has found rewards in a lifestyle of constant analysis, team coordination and pestering his colleagues. Holding an MCSA Windows Server... read more
Affiliate Disclosure
  • To handle this get-appxpackage access is denied error just allow permissions to the folder location.
  • Making sure the AppX Deployment Service is running has proven to be effective.
get-appxpackage access is denied
XINSTALL BY CLICKING THE DOWNLOAD FILE
To fix various PC problems, we recommend Restoro PC Repair Tool: This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:
  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

There has been a growing number of reports from Windows users experiencing difficulties executing the Get-Appxpackage commands within the PowerShell application. Instead, they are confronted with an error Get-Appxpackage Access is Denied.

The topic at hand resembles the issue of Deployment failed with HRESULT: 0x80080204, which we had previously addressed in a comprehensive guide.

To truly address the issue at hand, we must delve into the root cause.

What is the Get-Appxpackage access is denied error?

The Get-Appxpackage access is denied error is a common issue that a variety of factors can cause:

  • Admin privileges – If the PowerShell software is not granted administrator authority, it might prompt this specific error.
  • Restriction to the destination folder – A lack of permissions for a specific folder can cause this message to appear.

How can I fix the Get-Appxpackage access is denied error?

  • Run PowerShell as administrator – Running Powershell as an admin can be quite effective in operating your command to tackle this error.

1. Make sure the AppX Deployment Service is running

  1. Open Search and search for powershell. Select Run as administrator.
  2. Once the PowerShell app window opens, type the following and press Enter: Get-Service “AppXSvc”
  3. If the status says Running, the Appx Deployment Service is running faultlessly.
  4. If the service is not running, open the Command Prompt by pressing the Windows key + R simultaneously and typing cmd in it.
  5. Then press Ctrl + Shift + Enter keys concurrently and click Yes on the UAC prompt to proceed.
  6. Type the following and press Enter to run it: net start AppXSvc
  7. This command gets executed, and it starts the Appx Deployment Service on your system.

2. Allow permissions to the location folder

  1. Locate the folder on your PC where you want to install the app.
  2. Right-click on this folder and choose Properties from the context menu.
  3. Immediately the Properties window pops up, click the Security tab and look for your username in the Group or user names section.
  4. After selecting your user profile, check if all the permissions are allowed or not in the section just below that.
  5. If there are some permissions not allowed, then click the Edit button to change the permissions.
  6. In the Permissions window, choose your user profile again in the Group or user names section.
  7. Then, make sure all the checkboxes are selected under Permissions for your User profile at the bottom.

    Note: If you cannot find your user profile, you can click Add button and follow the instructions on the popup window to search for your profile and add it.
  8. Next, click OK.
  9. Now you can close all the windows that were opened by clicking OK on all of them.
  10. Lastly, try and see if the commands are executed without any errors.

Keep in mind that you shouldn’t change permissions for any system folders.

3. Make yourself an administrator

  1. On your home screen click Start and select Settings.
  2. Now choose Accounts, Under Family & other users, choose the account owner name (you should see Local account below the name), then select a Change account type.
  3. Under Account type, select Administrator, and then choose OK.
  4. Sign in with the new administrator account.
  5. Now, Launch Powershell and check if the error is gone.

If you can’t make yourself an administrator, you’ll need to create a new local account on Windows 11 and then upgrade to the administrator account.

We hope that this manual has successfully addressed your concern. If you face any further hindrances, we recommend exploring PowerShell Export-CSV access to the path is denied for comparable remedies.

We would greatly appreciate your feedback on the most effective solution you have found. Kindly leave a comment below to let us know your thoughts.

Still having issues? Fix them with this tool:

SPONSORED

If the advices above haven't solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

This article covers:Topics: