Get-appxpackage is a Powershell Cmdlet that contains a list of all app packages installed on a user profile. This built-in command is useful for the users to see the list of the appx packages installed on current user profile. All the app packages have .msix or .appx filename extension.
By running Powershell in elevated mode, you will be able to run this command. It will list out all installed appx packages from the Microsoft Store and third-party apps. Also, it will help you in install or uninstall any apps you want.
Some people have reported about powershell get-appxpackage access is denied issue. When they are trying to running this command, they received an error that can be read as:
Error Message:
Get-AppxPackage: The service cannot be started, either because it is disabled or because it has no enabled devices
associated with it. The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
If you are running with the same issue, the possible fixes below will be helpful for you in getting the required fix:
Possible fixes for powershell get-appxpackage access is denied
Fix 1: Run the Command in Elevated Mode
The possibility could be that you are not running the command by giving admin access. The Get-AppxPackage cmdlet requires the admin access to run. So, make sure your user account has admin access:
- Press on Start button and type PowerShell,
- Right-click on it and select Run as administrator,
- Type cmdlet and hit Enter,
- Check now if the problem is resolved.
Fix 2: check Permission of the Destination Directory
By default, the Destination Directory will be in C: Drive and C drive has full permission by default. So, when you download and installing an app in a particular folder or partition driver, make sure that that folder or partition has full permission to read and write:
- Open the Destination folder or partition by using Fie Explorer,
- Right-click on it and select Properties,
- Go to the Security tab, and now under Group or User Names, make sure your account is visible and have full permission.
If powershell get-appxpackage access is denied error continues, makes sure the SYSTEM user account is present and has full permission. You can give the full permission by clicking ADVANCED.
Fix 3: Check the Appx Deployment service Status
If powershell get-appxpackage access is denied error is received while running Appex command, you should check the Appex deployment service if it is running out or not:
- Press Win+ R, type services.msc and hit Enter to open Service Management Console,
- Now, locate AppX Deployment Service (AppXSVC) and see it is running,
- If not, you should start the service. For that, you should use Registry Editor to run the service. Open Regedit and navigate to the below path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AppXSvc
- Left click on AppXSvc Registry key and from the right-hand, double click on Start DWORD and set the value data to 3 and click OK to save the changes.
Conclusion
That’s all! Now, we are rounding off this article. Hope so, these fixes are helpful for you in getting the fix for powershell get-appxpackage access is denied. To automatically deal with this issue, you should use PC Repair Tool. The tool will check the system for possible errors and provide their automatic fix.