Install Winget Using Powershell Updated Free

How to Install and Update Winget Using PowerShell (2025 Guide)

  • Replace the path with the downloaded file path.
  • After completion, run winget --version.

Step 1: Open PowerShell

Step 2 — Check for existing winget

$repo = "microsoft/winget-cli" $url = "https://github.com" $asset = Invoke-RestMethod -Uri $url | Select-Object -ExpandProperty assets | Where-Object $_.name -like "*.msixbundle" $downloadUrl = $asset.browser_download_url Invoke-WebRequest -Uri $downloadUrl -OutFile "$env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" Use code with caution. 2. Install the Package

By following the steps outlined in this article, you should now have Winget installed and configured on your system. Happy package managing! install winget using powershell updated

Method 1: Install/Update Winget via the Microsoft Store (Recommended)

# Run as Administrator $githubUrl = "https://api.github.com/repos/microsoft/winget-cli/releases/latest" $release = Invoke-RestMethod -Uri $githubUrl $asset = $release.assets | Where-Object $_.name -like "*.msixbundle" $downloadUrl = $asset.browser_download_url $output = "$env:TEMP\winget.msixbundle" How to Install and Update Winget Using PowerShell

Before You Begin: Check If Winget Is Already Installed


Avatar

Paul Hébert

Paul Hébert is an independent scholar who received his PhD from the University of Michigan. He is currently working on a book manuscript based on his dissertation, “A Microcosm of the General Struggle: Black Thought and Activism in Montreal, 1960–1969.” Follow him on Twitter @DrPaulHebert.