How to Install WinGet Using PowerShell (2026 Update) WinGet (Windows Package Manager) is now a core system component for Windows 10 (version 1809+), Windows 11, and Windows Server 2025. While it usually comes pre-installed via the App Installer from the Microsoft Store, you may need to install or repair it using PowerShell if it is missing or corrupted. Method 1: The Fast Microsoft Repair (Recommended)
# Run as Admin
$url = "https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
$vclibs = "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx"
$license = "https://github.com/microsoft/winget-cli/releases/latest/download/License1.xml"
$action = New-ScheduledTaskAction -Execute "powershell.exe" -Argument "-Command `"& iwr https://aka.ms/getwinget -OutFile $env:TEMP\winget.msixbundle; Add-AppxPackage -Path $env:TEMP\winget.msixbundle `""
$trigger = New-ScheduledTaskTrigger -Monthly -Days 1
Register-ScheduledTask -TaskName "UpdateWinget" -Action $action -Trigger $trigger -RunLevel Highest
Step 3: Install the bundle using Add-AppxPackage
Add-AppxPackage -Path $output
Prerequisites