Encarta App / Home

Install Winget Using Powershell Updated

How to Install or Update Winget Using PowerShell (2026 Guide)

The Windows Package Manager (winget) has become an essential tool for anyone managing software on Windows. Whether you’re a developer, IT admin, or power user, winget lets you install, upgrade, and configure applications directly from the command line.

  1. Run PowerShell as Administrator – Winget installation affects system-level components. Right-click PowerShell and select “Run as administrator,” or use Start-Process PowerShell -Verb RunAs.
  2. Set Execution Policy – To run scripts from the internet, you may need to temporarily allow script execution:
    Set-ExecutionPolicy RemoteSigned -Scope Process -Force
    
  3. Check Existing Winget Version – First, verify if Winget is already present:
    winget --version
    
    If this returns a version number, your goal may be updating rather than installing.

Since Winget is distributed as part of the Microsoft App Installer, we will download the latest bundle directly from the official Microsoft GitHub repository. 1. Download the Latest Release install winget using powershell updated

: If the scripts won't run, set your policy to bypass for the session: Set-ExecutionPolicy Bypass -Scope Process Admin Rights : Always run PowerShell as an Administrator to ensure the Add-AppxPackage command has the necessary permissions. Store Update : If you have access to the Microsoft Store, simply running How to Install or Update Winget Using PowerShell

Step 3 — Install winget via App Installer from Microsoft Store (recommended)

This installs the official App Installer package that contains winget. Check Existing Winget Version – First, verify if

Get-AppxPackage Microsoft.DesktopAppInstaller | Repair-AppxPackage

Whether you’re a system administrator managing dozens of machines or a power user automating software setup, keeping Winget updated via PowerShell guarantees that your package management remains reliable and future‑proof.

if ($installRequired -or ($args[0] -eq "-force")) Where-Object $_.name -like "*.msixbundle" $downloadUrl = $asset.browser_download_url $output = "$env:TEMP\winget_latest.msixbundle"

  1. PowerShell 5.1 or PowerShell 7+ – The commands below work in both, but PowerShell 7 (or 7.4+) is recommended for better JSON handling and web cmdlets.
  2. Administrator privileges – You must run PowerShell as Administrator to install or update Winget.
  3. Internet connection – The installer downloads from Microsoft’s official GitHub repository.
  4. Windows 10 1809 or newer – Older builds may not support Winget at all.