
Now close the current PowerShell console or command prompt and try running winget again. %UserProfile%\AppData\Local\Microsoft\WindowsApps

Now click New button and paste the following line and click OK.Under User Variables section, double click Path variable to edit it.Now click on Environment Variables button. Click on Select app package file and add the previously created intunewin file and enter the app information and click Next.Open Powershell and type the command: winget install -id Git.Git -e -source winget Restart the powershell and you will have Git in command line. This will open Advanced System Properties. The following is working for me, using powershell to download and install the 64-bit version of git-for-windows. Open Run dialog and type sysdm.cpl ,3 and press Enter.Make sure you have installed the winget package on your system.


If you’re getting the error as shown in the screenshot, follow these steps: The term ‘winget’ is not recognized as the name of a cmdlet, function, script file, or operable program Fixing the Winget Error 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. winget install microsoft.powershell -silent -accept-package-agreements -accept-source-agreements.
