Right-click (or PowerShell 7) and select Run as administrator . Step 2: Set the Execution Policy
On older Windows 10 builds, WinGet might fail because it needs specific . Use this if the standard install doesn't work: powershell
When typing winget throws an error, PowerShell is the most reliable tool to get it back. This updated guide covers the exact scripts and methods required to install WinGet via PowerShell, ranging from the official automated installer to offline bootstrapping. Method 1: The Modern, Recommended One-Line Script
Next, install the winget package:
As of the latest updates in 2026, the stable version is approximately v1.28.x, with the App Installer and WinGet now sharing the same version number for consistency.
However, this method has limitations:
Behind the scenes, this package contains the Winget command-line tool. Once the installation is complete, restart PowerShell and run winget --version to verify. Remember that WinGet client is distributed specifically within the App Installer package. install winget using powershell updated
Execute this command to force-register the application package across your system: powershell
| PowerShell Cmdlet | Equivalent Winget Command | |------------------|---------------------------| | Find-WinGetPackage | winget search | | Install-WinGetPackage | winget install | | Update-WinGetPackage | winget upgrade | | Uninstall-WinGetPackage | winget uninstall |
isn't recognized after installation, restart your PowerShell session or your computer to refresh environment variables PowerShell Gallery Execution Policy: If you can't run scripts, set the policy temporarily: powershell Set-ExecutionPolicy RemoteSigned -Scope Use code with caution. Copied to clipboard Export a list of your current apps to a "winget import" file. Set up a scheduled task to keep all your software updated daily. Configure settings like progress bar styles or experimental features. Right-click (or PowerShell 7) and select Run as
While winget.exe works fine, the Microsoft.WinGet.Client module offers . These return objects rather than text strings, making scripting much easier.
The PowerShell Gallery installation method ( Install-Script winget-install -Force ) is the most thoroughly tested and stable approach for production environments. The scripts available through the Gallery have undergone community review and are less likely to contain breaking changes than the instant one-liner method.