Install Winget Using Powershell May 2026
Microsoft maintains the aka.ms/getwinget redirect to always point to the latest stable version of the App Installer. Method 2: Manual Check & Install (No Download Guessing) If the one-liner fails (e.g., due to network restrictions), you can force-install the exact version from the official GitHub repository.
# Download the latest App Installer package (which contains winget) $url = "https://aka.ms/getwinget" $output = "$env:TEMP\Microsoft.DesktopAppInstaller.msixbundle" Invoke-WebRequest -Uri $url -OutFile $output Add-AppxPackage -Path $output install winget using powershell
So, how do we get it via PowerShell? Let’s walk through the two methods that actually work. Microsoft makes winget available through the Microsoft Store or via the official GitHub releases. This PowerShell script checks for the latest version and installs it silently. Microsoft maintains the aka