Forum Discussion

Salam_ELIAS's avatar
Salam_ELIAS
Brass Contributor
Nov 29, 2025

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

  • 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

Resources