You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I open Windows Terminal sometimes, and type in any winget-related command, nothing shows up and it acts like the enter key was pressed.
for example: PS C:\Users\<<user>>> winget PS C:\Users\<<user>>>
Get-Command winget
# here is what I see:
Name : winget.exe
ModuleName :
Module : @{Name=}
CommandType : Application
Definition : C:\Users\tfl.COOKHAM\AppData\Local\Microsoft\WindowsApps\winget.exe
ParameterSets : {}
When I try to install with the release appxbundle, it gives me the button to reinstall. When I click that, it tells me that winget is already at its latest version. Unless auto update for non-insiders is a thing now, Going through the reinstall doesn't change anything, and the Get-Command still says the version is 0.0.0.0
VidarPT try installing the App Installer from the 1.0.11451 release. Unless you are on a Windows Insider build or you are in the Windows Package Manager Insider program, you will get v1.10.x of the App Installer not containing the Windows Package Manager from the Microsoft Store.
Installed this morning using the bundle from the GitHub page (v1.0.11451) and using Add-AppxPackage. Running into the same issue, but this is what I discovered.
If I run PS as the account that I'm logged in as, WinGet works. This works for a non-admin AD account as well as an different AD with admin creds. Now if I escalate privileges for PS using the admin account while logged with the standard user, it doesn't work.
All app store packages were fully updated at the time of testing.
[Edit] For poops and giggles I tried it with ye old cmd terminal, got the same results as above.
Reacted by Adam Kauffman, Drew Naylor and AnLAdmin
I also noticed the problem with other apps I had installed.
I recently reinstalled windows keeping my files because I screwed up C:\Program Files\WindowsApps and could not install nor start anything related to the Microsoft Store
as if I didn't enter anything at all.
get-command winget gives CommandType Name Version Source ----------- ---- ------- ------ Application winget.exe 0.0.0.0 C:\Users\[privacy]\AppData\Local\Microsoft\WindowsApps\winget.exe
tried removing and manually installing latest appxbundle from github didn't change anything.
I'm on win10pro 21h1.
VidarPT I've managed to run into exactly the same issue. I've tried the same steps as you, uninstalling and reinstall AppInstaller, but still getting the same issue of:
ResourceUnavailable: Program 'winget.exe' failed to run: The process has no package identity.At line:1 char:1
+ winget
+ ~~~~~~.
same problem this happened out of no where, I was able to install apps with winget and was able to use it all the time, now
Get-Command winget
Get-Command : The term 'winget' 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
Activity
denelon commentedon Jul 17, 2020
@lisaraj2009 can you run
winget --infoand share what version you are running? Also what version of Windows and Windows Terminal are you running?doctordns commentedon Jul 18, 2020
can you try this:
sonj2 commentedon Aug 2, 2020
The author of the post hasn't responded yet, but since I have ran into the same issue I'll put what I got from Get-Command winget:
I'm guessing the update got botched. I'll try uninstalling and reinstalling it. For reference, I am not in the Insider Program; OS build is 19041.388.
sonj2 commentedon Aug 2, 2020
When I try to install with the release appxbundle, it gives me the button to reinstall. When I click that, it tells me that winget is already at its latest version. Unless auto update for non-insiders is a thing now, Going through the reinstall doesn't change anything, and the Get-Command still says the version is 0.0.0.0
23 remaining items
denelon commentedon Jun 2, 2021
VidarPT try installing the App Installer from the 1.0.11451 release. Unless you are on a Windows Insider build or you are in the Windows Package Manager Insider program, you will get v1.10.x of the App Installer not containing the Windows Package Manager from the Microsoft Store.
jimmyjammin commentedon Jun 9, 2021
Installed this morning using the bundle from the GitHub page (v1.0.11451) and using Add-AppxPackage. Running into the same issue, but this is what I discovered.
If I run PS as the account that I'm logged in as, WinGet works. This works for a non-admin AD account as well as an different AD with admin creds. Now if I escalate privileges for PS using the admin account while logged with the standard user, it doesn't work.
All app store packages were fully updated at the time of testing.
[Edit] For poops and giggles I tried it with ye old cmd terminal, got the same results as above.
msanchezdev commentedon Jun 21, 2021
I also noticed the problem with other apps I had installed.
I recently reinstalled windows keeping my files because I screwed up C:\Program Files\WindowsApps and could not install nor start anything related to the Microsoft Store
But the command pointed above fixed it
But looks like something is still broken
GizmoTheGreen commentedon Jul 27, 2021
I get no output from winget, not in cmd or in powershell, as my regular user or as admin
PS C:\WINDOWS\system32> wingetPS C:\WINDOWS\system32>as if I didn't enter anything at all.
get-command winget gives
CommandType Name Version Source----------- ---- ------- ------Application winget.exe 0.0.0.0 C:\Users\[privacy]\AppData\Local\Microsoft\WindowsApps\winget.exetried removing and manually installing latest appxbundle from github didn't change anything.
I'm on win10pro 21h1.
Bahnschrift commentedon Sep 12, 2021
VidarPT I've managed to run into exactly the same issue. I've tried the same steps as you, uninstalling and reinstall AppInstaller, but still getting the same issue of:
Did you ever find a solution?
denelon commentedon Sep 13, 2021
Bahnschrift take a look at https://github.com/microsoft/winget-cli/tree/master/doc/troubleshooting. If that doesn't resolve the issue you are having, please file a new bug.
avipars commentedon Oct 11, 2022
Try opening CMD as admin, then proceed... For me, winget was installed correctly, but had an issue with regular user credentials/permissions.
RanY-Luck commentedon Dec 12, 2023
May I ask if my path will affect the winget acquisition? There are other problems

patientx commentedon Apr 20, 2024
same problem this happened out of no where, I was able to install apps with winget and was able to use it all the time, now
Get-Command winget
Get-Command : The term 'winget' 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
and winget as a command doesn't get recognised in cmdline ...