Skip to content
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 fails in Windows PowerShell but runs via PowerShell in Windows Terminal #4519

Open
denelon opened this issue May 31, 2024 · 3 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@denelon
Copy link
Contributor

denelon commented May 31, 2024

As can be seen here.

2024-04-30.05-01-33.mp4

Originally posted by @Battler624 in #4427

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label May 31, 2024
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels May 31, 2024
@Battler624
Copy link

Winget-info does not work on either powershell or powershell via terminal

winget-info : The term 'winget-info' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ winget-info
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (winget-info:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

@denelon
Copy link
Contributor Author

denelon commented Jun 4, 2024

Can you install the Microsoft.WinGet.Client PowerShell module and try running Repair-WinGetPackageManager -Latest -Force and let me know if that resolves the issue?

@Battler624
Copy link

Battler624 commented Jun 5, 2024

Can you install the Microsoft.WinGet.Client PowerShell module and try running Repair-WinGetPackageManager -Latest -Force and let me know if that resolves the issue?

Winget now works in both, winget-info still doesn't work.

Edit: Winget --info works tho.

https://i.imgur.com/7CvbJ5x.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

2 participants