To install or update (Windows Package Manager) using PowerShell, you can use the official Microsoft.WinGet.Client
: Close all PowerShell windows and reopen them. If the error persists, test the direct path explicitly: & "$env:LOCALAPPDATA\Microsoft\WindowsApps\winget.exe" --version . If this works, you need to manually append %USERPROFILE%\AppData\Local\Microsoft\WindowsApps to your system Environment Variables.
Once WinGet is installed via PowerShell, optimize your setup with these two essential commands: install winget using powershell updated
The Windows Package Manager (WinGet) is a command-line tool that lets you install, update, and manage software with a single command. While Windows 10 and 11 usually include it by default via the Microsoft App Installer, you can manually install or force-update it using PowerShell. 1. Check for Existing Installation
Add-AppxPackage -Path ".\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" To install or update (Windows Package Manager) using
WinGet has transformed how Windows users and administrators manage software. It eliminates tedious manual processes and enables batch automation that previously required complex scripting. The irony that WinGet lacks a built-in command-line installer is now a solved problem, thanks to the community-driven winget-install script.
The command downloads and executes code directly from the internet. While the asheroto.com/winget short link consistently redirects to a signed, verified version of the script, enterprise environments with strict security policies may prefer the PowerShell Gallery method, which involves an explicit installation step before execution. Once WinGet is installed via PowerShell, optimize your
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.
For administrators and advanced users who want to manage WinGet entirely from within PowerShell, Microsoft provides the Microsoft.WinGet.Client PowerShell module. This module acts as a wrapper around the underlying Winget APIs, exposing PowerShell-native cmdlets that can be used in scripts and automation workflows.
To check your Windows version, press Win + R , type winver , and press Enter. Verify that your OS build meets the minimum requirements.
Once the script completes, verify the installation: