Forum Discussion
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
It's only supported on Windows Server 2025 Salam_ELIAS
For unsupported operation on Windows Server 2022 and Windows Server 2019 I can fully recommend https://github.com/asheroto/winget-installhttps://github.com/asheroto/winget-install
2 Replies
It's only supported on Windows Server 2025 Salam_ELIAS
For unsupported operation on Windows Server 2022 and Windows Server 2019 I can fully recommend https://github.com/asheroto/winget-installhttps://github.com/asheroto/winget-install
- 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