Here’s a step-by-step, updated guide to install winget (the Windows Package Manager) using PowerShell, even on older or custom Windows images.

Write-Host "Installing Winget..." Add-AppxPackage -Path $Path

For WinGet to function, your system must meet the following prerequisites:

Microsoft provides a streamlined deployment script that handles dependencies automatically. This is the fastest and most reliable method for 2026. Step 1: Open PowerShell as Administrator Press the . Type PowerShell .

| PowerShell Cmdlet | Equivalent Winget Command | |------------------|---------------------------| | Find-WinGetPackage | winget search | | Install-WinGetPackage | winget install | | Update-WinGetPackage | winget upgrade | | Uninstall-WinGetPackage | winget uninstall |

module, simply run the repair command again to pull the latest stable version: powershell Repair-WinGetPackageManager Use code with caution. Copied to clipboard ⚠️ Common Troubleshooting Missing Dependencies: On older systems or Windows Server, WinGet requires Microsoft UI Xaml Microsoft Learn Repair-WinGetPackageManager cmdlet usually handles these automatically Path Issues:

After running any of the methods above, close your current PowerShell window and open a fresh one. Run the following command to ensure Winget is functioning correctly: powershell winget --version Use code with caution.

start ms-windows-store://pdp/?productid=9NBLGGH4NNS1

Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery -Scope AllUsers

How to Install WinGet Using PowerShell: The Updated Step-by-Step Guide

This script checks for Winget, installs it if missing, and then silently installs a standard suite of development and productivity apps.

Open and run:

This article is your definitive, up-to-date guide. We will walk you through everything from verifying if Winget is already on your system to performing a fresh installation using PowerShell, updating it to the latest version, and even troubleshooting the most common errors. By the end, you will be able to manage your Windows software like a pro from the command line.