Note: If this returns an error saying winget is not recognized, use Method 1 or 2 above.
This command updates Winget to the latest version available.
winget install --self
# 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 install winget using powershell updated
Navigate to the download directory and execute:
If successful, the terminal will return the active version number (e.g., v1.9.xxxx ). Testing a Basic Command
Run winget upgrade --all to update every application at once. Silent Installs: Install software without pop-up wizards. Method 1: The Recommended Method (Via App Installer) Note: If this returns an error saying winget
How to Install Winget Using PowerShell: The Updated Guide The Windows Package Manager ( winget ) is an essential command-line tool for developers, system administrators, and power users. It automates the discovery, installation, upgrading, and configuration of applications on Windows. While modern versions of Windows 10 and 11 usually come with winget pre-installed via the App Installer package, this installation can become corrupted, outdated, or may be entirely missing in enterprise environments and Windows Server editions.
Ensure WinGet can connect to the Microsoft repository:
This is the modern, programmatic way to bootstrap WinGet using Microsoft's official PowerShell module. It automatically handles dependencies like VCLibs and XAML. Run the following commands: powershell Install VC++ Runtime Invoke-WebRequest -Uri https://aka
If you encounter issues during installation or while using Winget, here are a few troubleshooting tips:
winget update --self
winget import -i myapps.json — Reinstalls all those apps on a fresh Windows install automatically.
Note: The script above attempts the Store route first, then falls back to the GitHub MSIX bundle. Adjust the release URL if necessary.