Before installing winget, let's check if it's already installed on your system. Open PowerShell as an administrator and run the following command:
$url = (Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | Where-Object $_.EndsWith( ".msixbundle" ) Invoke-WebRequest -Uri $url -OutFile "WinGet.msixbundle" Add-AppxPackage -Path "WinGet.msixbundle" Remove-Item "WinGet.msixbundle" ### **Common Troubleshooting** * **System Requirements:** Ensure you are on Windows
Method 2: Manual GitHub Bootstrap (For Air-Gapped or Broken Systems)
To install Winget using PowerShell, follow these steps:
winget --version winget search git
wsreset.exe -i
start ms-windows-store://pdp/?productid=9NBLGGH4NNS1
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)
winget --version
winget is a package manager for Windows that allows you to easily install and manage software on your system. In this guide, we will walk you through the steps to install winget using PowerShell.
If you want to ensure you have the latest version of winget, run:
If you already have winget but it's outdated, you can update it via the Store or run:
winget-install
Add-AppxPackage -Path ".\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
Copy and paste the following script into your PowerShell window and press : powershell
Ensure your Windows 10 is updated to version 1809 or later. Next Steps: Using Winget
This happens because the PATH environment variable hasn't updated in your current terminal session. install winget using powershell updated