Install Winget Using Powershell Updated -
Winget is bundled with the App Installer package on Windows 10 (1809+) and Windows 11. But older systems or certain enterprise images may lack it.
Alternatively, you can trigger the Microsoft Store to update the "App Installer" package (which contains WinGet) using the following command: powershell
Add-AppxPackage -Path "C:\path\to\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
This offline method is critical for enterprise environments where internet access is restricted or for systems like Windows IoT Enterprise LTSC. install winget using powershell updated
Next, download and install Winget using the following command:
This updated guide walks you through every modern method to install WinGet using PowerShell, including automated scripts, the Microsoft Store approach, and offline manual installations. It also covers essential verification steps, troubleshooting the infamous "winget is not recognized" error, and upgrading an existing installation.
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. Winget is bundled with the App Installer package
# 1. Install VC++ Runtime Invoke-WebRequest -Uri https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx -OutFile VCLibs.appx Add-AppxPackage VCLibs.appx # 2. Install UI Xaml 2.8 (Required for newer WinGet) Add-AppxPackage -Path https://cdn.winget.microsoft.com/cache/source.msix Use code with caution. Copied to clipboard Once installed, verify it by typing: powershell winget --version Use code with caution. Copied to clipboard
Write-Host "Installing Winget..." Add-AppxPackage -Path $Path
winget --version
Now that you have winget installed, you can use it to manage packages on your system. Here are a few examples:
Add-AppxPackage -Path ".\Microsoft.VCLibs.x64.14.00.Desktop.appx" Use code with caution. Retry the Add-AppxPackage command for the Winget bundle. Verification and First Use Once installed, verify the installation by running: powershell winget --version Use code with caution. To update all installed apps to the latest versions: powershell winget upgrade --all Use code with caution. Troubleshooting: Winget Not Working
Keeping Winget updated ensures you have access to the latest features (like configuration files and improved parsing). If you used Method 2 above ( Repair-WinGetPackageManager ), you have already updated it. However, if you have an older version, here is the best way to refresh it: Next, download and install Winget using the following
