Install Winget Using Powershell Updated Jun 2026
While winget.exe works fine, the Microsoft.WinGet.Client module offers . These return objects rather than text strings, making scripting much easier.
: PowerShell 5.1 (Built-in) or PowerShell 7+ (Core).
# Use -AllUsers for system-wide installation Repair-WinGetPackageManager -AllUsers Use code with caution.
The easiest way to install winget is to pull the .msixbundle directly from the official GitHub repository. powershell install winget using powershell updated
Creating a to install all your favorite apps in one click.
Completely close your current PowerShell window and open a fresh one. Type the following command: powershell winget --version Use code with caution. Share public link
and its dependencies (like UI Xaml and VC++ libs) from GitHub. Run this command in an elevated PowerShell prompt: powershell Install-Script -Name winget-install -Force; winget-install Use code with caution. Copied to clipboard While winget
:
To modify system packages, you must run PowerShell with elevated privileges. Right-click the menu icon. Select Terminal (Admin) or Windows PowerShell (Admin) . Step 2: Run the Installation Command
Windows Server (2019, 2022, and 2025) does not natively support the Microsoft Store infrastructure, which often breaks standard WinGet installers. To make WinGet function on Windows Server via PowerShell, you must manually install the required VCLibs and UI XAML dependencies first. Completely close your current PowerShell window and open
This command displays a list of all packages installed on your system using Winget.
If successful, the system will output the current version number (e.g., v1.9.xxxx ).
Windows' native package manager, WinGet (the Windows Package Manager), has fundamentally changed how users and system administrators manage software on Windows. However, one of the most persistent frustrations is that this command-line tool often does not come with an official command-line installer, creating a circular problem for those who need to automate its deployment.