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
