Post

Fix `winget` Not Recognized on Windows

To re-install the stable release of WinGet on Windows, run the following from a PowerShell prompt:

1
2
3
4
5
6
7
8
Write-Host "Installing WinGet PowerShell module from PSGallery..."
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery | Out-Null
Write-Host "Using Repair-WinGetPackageManager cmdlet to bootstrap WinGet..."
Repair-WinGetPackageManager -AllUsers
$PSVersionTable.PSVersion
Install-Module -Name PowerShellGet -Force
Install-Module -Name PackageManagement -Force
Write-Host "Done."
This post is licensed under CC BY 4.0 by the author.