-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Winget doesn't work when run from elevated cmd #2443
Comments
Which version of winget is this? The output from Does winget run in administrator mode from "C:\Users\Administrator>"? Try running |
The following fixed this issue for me (running from admin powershell), I installed the Microsoft.Winget.Source app with the following: Invoke-WebRequest 'https://cdn.winget.microsoft.com/cache/source.msix' -OutFile 'c:\downloads\Microsoft.Winget.Source.msix' -UseBasicParsing Push-Location 'c:\downloads'; |
I am having the same issue; I can run as local user but not as admin from cmd and PowerShell. |
For me it's fixed in 1.5.441-preview |
Brief description of your issue
Winget works fine from non-elevated cmd. From elevated cmd it gives "Failed when searching source; results will not be included: winget" error on almost every command
Expected behavior
Expected to be able to use winget on elevated prompt without the need to enter admin password to install software
Actual behavior
If I run exactly same command on elevated and non-elevated prompts I get different behaviours
Source update doesn't make any difference
Comment
I think I have read though all the solutions I could find, most of them point to the issue with PATH, but in my case I can run the software, but it doesn't work as expected. Please advise.
The text was updated successfully, but these errors were encountered: