Forum Discussion
Salam_ELIAS
Nov 29, 2025Brass Contributor
WINGET is not recognized as a commandlet on win 2k19 server fresh setup
I have setup a new win2k19, I followed the instructions
Install-PackageProvider -Name NuGet -Force | Out-Null
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery | Out-Null
Repair-WinGetPackageManager
When I try anu winget command I get
winget is not recognized as a commandlet
1 Reply
- L_Youtell_974Iron Contributor
if you want to use winget in windows 2019, you need to use those lines
Install-PackageProvider -Name NuGet -Force
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery
Install-Script -Name winget-install -force
winget-install