- August 8, 2022
- Posted by: Surender Kumar
- Categories: Windows 10, Windows 11
Winget does not work in Windows
Windows package manager (or winget) is a latest package manager for Windows (just like apt
and dnf
in Linux) that only works in the modern version of Windows 10 1809 (build 17763) or Windows 11. To use winget, make sure you install it using Microsoft Store app. Just open Run dialog and type "ms-windows-store:"
without quotes and press Enter. Search for "winget"
or "App Installer"
without quotes and make sure it is installed.
If you still get The term ‘winget’ is not recognized as the name of a cmdlet, function, script file, or operable program error as shown in the screenshot, see Fixing the Winget Error section to resolve it.
Fixing the Winget Error
If you’re getting the error as shown in the screenshot, follow these steps:
- Make sure you have installed the
winget
package on your system. - Open Run dialog and type
sysdm.cpl ,3
and press Enter. This will open Advanced System Properties. - Now click on Environment Variables button.
- Under User Variables section, double click Path variable to edit it.
- Now click New button and paste the following line and click OK.
%UserProfile%\AppData\Local\Microsoft\WindowsApps
- Click OK once again. Now close the current PowerShell console or command prompt and try running
winget
again. It should now work without any error.
Thank you and excellent article. The fix worked but why did this happen? I never made any changes that I thought would disable winget.
Thank you for the article and helpful trick
Glad to help
🙂
Didn’t work for me. I still get the “‘winget’ is not recognized” error. 🙁
Make sure winget is installed first.
This is stupid Microsoft! Why isn’t this installed as part of windows?
Great article – works perfectly.
It’s really weird that Microsoft didn’t create some troubleshooter in Windows 11 Settings>System>Troubleshoot>Other troubleshooters.
Seems like very easy IF check to implement.
It works! Really helpful article, thanks.
thank you, winget started using your method
Glad to know it worked