Hello Lysa,
Error 0x80070005 (E_ACCESSDENIED) does not necessarily indicate insufficient administrator privileges; AppX deployment also enforces package-specific permissions, security policies, and registration requirements. I recommend starting with Event Viewer → Applications and Services Logs → Microsoft → Windows → AppXDeployment-Server → Microsoft-Windows-AppXDeploymentServer/Operational, particularly Event ID 404, which typically contains the deployment failure details, and Event ID 465 if package opening fails. Immediately after reproducing the issue, run Get-AppxLog or Get-AppxLog -ActivityId <ActivityID> in elevated PowerShell to retrieve the detailed deployment errors and identify the exact failing operation. Also check Microsoft-Windows-AppxPackaging/Operational for package-related errors and review AppLocker logs under Microsoft-Windows-AppLocker/EXE and DLL and MSI and Script if application control policies may be involved. Avoid manually modifying ACLs on C:\Program Files\WindowsApps or rebuilding the StateRepository database without evidence of corruption, as these actions can damage Windows app registration and package servicing. If the logs identify an access-denied operation, please share the corresponding Event ID, Activity ID, Windows build, and the complete deployment error so we can isolate whether the problem originates from filesystem permissions, policy enforcement, or the AppX registration infrastructure.
If my answer is useful for you, please hit Accept the answer to support me.
Thank you
Domic Vo.