question

JoelOsman-9299 avatar image
0 Votes"
JoelOsman-9299 asked anugamerboss-1174 commented

Power Shell issue

hi when trying to install a program using powershell i get the following issue

C:\Program Files\fm2021> add-appxpackage -path .\appxmanifest.xml -register
add-appxpackage : Deployment failed with HRESULT: 0x80070005, Access is denied. AppX Deployment operation failed with error 0x0 from API Logging data because access was denied for file: C:\Program
Files\fm2021\microsoft.system.package.metadata, user SID: S-1-5-21-4238350349-2441648155-1045941222-1001
NOTE: For additional information, look for [ActivityId] 77ef7a60-8edb-0000-0a84-f077db8ed701 in the Event Log or use
the command line Get-AppPackageLog -ActivityID 77ef7a60-8edb-0000-0a84-f077db8ed701
At line:1 char:1
+ add-appxpackage -path .\appxmanifest.xml -register
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (C:\Program Files\fm2021\appxmanifest.xml:String) [Add-AppxPackage], PSSe
curityException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

You've received an "access denied". Try running your script from an elevated PowerShell prompt. In other words, start PowerShell with "Run as administrator".

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

anugamerboss-1174 avatar image
0 Votes"
anugamerboss-1174 answered anugamerboss-1174 commented

Hello, I have the same problem as @JoelOsman-9299. The only difference is that I'm trying to install as Administrator the Microsoft Store packages on Windows Server 2022 with powershell in administrator. And I have the same error code 0x80070005 access denied.

How can I solve the problem?

· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I would suggest that you ask your own question. In it include specifics about what you are doing. What app are you installing? What command are you running? What is the full text of the error message? Do you see any additional error details in any of the eventlogs? Etc, etc. Details are important. It's nearly impossible to troubleshoot based on a simple "access denied" description.

0 Votes 0 ·

I use the command Add-AppxPackage -Path "C:\Users\Administrator\Downloads\Windows Store-20211223T151115Z-001\WindowsStore\Microsoft.UI.Xaml.2.7_7.2109.13004.0_x64_8wekyd88bbwe.appx" The command is executed and as soon as I check if it was really executed, I make a research in the apps of the pc and no result. Then, I carried out another command: "C:\Users\Administrator\Downloads\Windows Store-20211223T151115Z-001\WindowsStore\Microsoft.UI.Xaml.2 .7_7.2109.13004.0_x648wekyd88bbwe.appx" -DependencyPath "C:\Users\Administrateur\Downloads\Windows Store-20211223T151115Z-001\WindowsStore\Microsoft.windowsStore-22110.1401.10.0_neutral__8wekyd3bbwe. msixbnundle\StorePackage_22110.1401.10.0.0_x64.msix" to install it and the error 0x80070005acces not allowed.
unfortunately, I can't find this error in the event viewer anymore

0 Votes 0 ·

The error is :

Add-AppPackage : Échec du déploiement avec HRESULT : 0x80070005, Accès refusé.
erreur 0x80070005 : l’ouverture du package de l’emplacement WindowsStore a échoué.
REMARQUE: pour obtenir des informations supplémentaires, recherchez [ActivityId] 7415507f-f81b-0002-5272-15741bf8d701 dans le journal des événements ou utilisez la
ligne de commande Get-AppPackageLog -ActivityID 7415507f-f81b-0002-5272-15741bf8d701
Au caractère Ligne:1 : 1
+ Add-AppPackage -Path "C:\Users\Administrateur\Downloads\Windows Store ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : Erreur de sécurité : (C:\Users\Admini...01\WindowsStore:String) [Add-AppxPackage], PSSecurityException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand

0 Votes 0 ·