-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0x80070005 : Access is denied. #4704
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
I am seeing this is related to specific normal user. Let's say - you have two users - user1 and user2. For user1 it is not working. Kindly log into another user - user2. And try the same command. In my case for user2 - winget list works. I do not know what permission or files corrupted for user1 - that made winget get permission denied under normal user named - user1. Anyone can shed some light why user1 getting permission deny and how to fix that. |
Solved - based on the another thread. Cause: the WinGet folder in the windows temp folder of my non-privileged user had - for whatever reason - admin access rights only. Fix: deleted this WinGet folder, ran winget source update from an non-elevated shell again. Et voilà, a new WinGet folder with proper permissions has been created and everything is fine again. :-) |
Thank you for this solution. Specifically, I navigated into the |
Also thank you for the solution @venkee70. |
I don't even have that folder in the Temp and still have the same error |
gsudo can cause error 0x80070005: The UniGetUI package manager uses gsudo: |
This is it exactly. Thank you. |
Thanks for the solution, I am shocked that Windows doesn't just show the UAC prompt window to delete the admin access only folder in the appdata temp folder when it tries to install from the store? |
Brief description of your issue
Getting below error while running winget-cli from normal user ( non administrator account)
winget list
Failed in attempting to update the source: winget
Failed to open the predefined source; please report to winget maintainers.
An unexpected error occurred while executing the command:
0x80070005 : Access is denied.
Steps to reproduce
winget list
Failed in attempting to update the source: winget
Failed to open the predefined source; please report to winget maintainers.
An unexpected error occurred while executing the command:
0x80070005 : Access is denied.
Expected behavior
List all packages in the machine
Actual behavior
Returned error
C:\Users\Ramana>winget list
Failed in attempting to update the source: winget
Failed to open the predefined source; please report to winget maintainers.
An unexpected error occurred while executing the command:
0x80070005 : Access is denied.
Environment
The text was updated successfully, but these errors were encountered: