Hello,
Thank you for your question and for reaching out with your question today.
The error message you received indicates that the deployment failed with an "Access is denied" error. This error typically occurs when the command is not run with sufficient privileges.
To resolve this issue, try the following steps:
- Open PowerShell as an administrator: Right-click on the Start menu, select "Windows PowerShell (Admin)" or "Command Prompt (Admin)" to open an elevated PowerShell session.
- Run the command again: Copy and paste the following command into the elevated PowerShell window and press Enter:
Get-AppxPackage -allusers Microsoft.WindowsStore | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
By running PowerShell as an administrator, you should have the necessary permissions to register the Microsoft Store app. This should resolve the "Access is denied" error.
If the issue persists, you can try the following additional steps:
- Run the PowerShell command to set the execution policy: Open an elevated PowerShell window and run the following command to set the execution policy to "Bypass":
Set-ExecutionPolicy Bypass
- Disable Windows Defender or other antivirus software temporarily: Some antivirus programs can interfere with app installations. Temporarily disabling them during the installation process may help. Remember to re-enable them after completing the installation.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
If the reply was helpful, please don’t forget to upvote or accept as answer.
Best regards.