Install Winget Using Powershell Updated Page

Starting with Winget 1.5 and later, Microsoft introduced a winget upgrade command that can upgrade the package manager itself:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser install winget using powershell updated

$url = (Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | Where-Object $_.EndsWith( ".msixbundle" ) Invoke-WebRequest -Uri $url -OutFile "WinGet.msixbundle" Add-AppxPackage -Path "WinGet.msixbundle" Remove-Item "WinGet.msixbundle" ### **Common Troubleshooting** * **System Requirements:** Ensure you are on Windows Starting with Winget 1

$tempFile = "$env:TEMP\WingetUpdate.msixbundle" Invoke-WebRequest -Uri $bundleUrl -OutFile $tempFile Starting with Winget 1.5 and later