Install Winget Using Powershell Updated ~repack~ Jun 2026
Winget is not a standalone download; it is distributed as part of the package from the Microsoft Store. Consequently, installing or updating Winget effectively means ensuring the latest version of the App Installer is present on your system. While Windows 10 (build 1809+) and Windows 11 typically include Winget, some enterprise-managed systems, LTSC (Long-Term Servicing Channel) editions, or customized images may lack it. PowerShell provides a scriptable, repeatable method to address this.
Method 1: The Automated Modern PowerShell Script (Recommended)
While Winget is pre-installed on most modern Windows systems, there are scenarios where you need to install or update it manually. This guide provides the most up-to-date methods for installing Winget via PowerShell in 2026. What is Winget and Why Install It? install winget using powershell updated
: This usually happens if you skipped Method 2's dependency steps. Ensure you manually download and run Add-AppxPackage for both Microsoft.VCLibs and Microsoft.UI.Xaml .
Note: The script above attempts the Store route first, then falls back to the GitHub MSIX bundle. Adjust the release URL if necessary. Winget is not a standalone download; it is
Use WinGet to install and manage applications | Microsoft Learn 24 Mar 2026 —
Best for: Windows 10/11 users where the winget command is missing or broken. What is Winget and Why Install It
Invoke-Expression (Invoke-WebRequest -Uri "https://github.com" -UseBasicParsing).Content Use code with caution. Why this works:
To install (Windows Package Manager) using PowerShell, the most reliable and updated method involves using the official Microsoft WinGet Client module . This approach is particularly useful for environments like Windows Sandbox, Windows Server, or fresh installations where the Microsoft Store might not be easily accessible. Prerequisites
or PowerShell 7+ executed with Administrative privileges.
Windows Server editions and Windows 10 LTSC lack the Microsoft Store infrastructure, causing the standard installer to fail due to missing dependencies. To bypass this, you must explicitly install the required prerequisites before installing the main WinGet bundle. Follow these steps in an elevated PowerShell window: Step 1: Download and Install UI Dependencies