# 4. Install the file Write-Host "Installing winget..." Add-AppxPackage -Path $Path
Repair-WinGetPackageManager
Invoke-WebRequest -Uri https://aka.ms/getwinget -OutFile winget.msixbundle Add-AppxPackage winget.msixbundle Use code with caution. Copied to clipboard The "Hot" Review: Why WinGet is Windows' Best-Kept Secret install winget using powershell hot
If you run into errors regarding dependencies (like VCLibs or UI.Xaml ), you may need to install them first. You can usually fix this by running this simple dependency command before trying the installs above: install winget using powershell hot
After running any of the above, restart your PowerShell session and type: powershell winget --version Use code with caution. Copied to clipboard Why use PowerShell for this? Automation : It allows for "headless" setups on new Windows machines. Bypassing UI install winget using powershell hot