Install Winget Using Powershell Updated ~repack~ Jun 2026
| Feature | | Chocolatey | Scoop | | :--- | :--- | :--- | :--- | | Official Support | Microsoft Native | 3rd Party (Corporate) | 3rd Party (Community) | | Requires Admin | Usually | Yes (Installs system-wide) | No (User folder) | | Best for | MS Store Apps & General GUI Apps | Enterprise & Legacy MSI apps | Dev Tools (Python, Node) | | Repository | GitHub + Microsoft Store | Large community repo | GitHub buckets | | Scripting | Good (Native Objects via PS Module) | Good (PowerShell scripts) | Excellent (No UAC prompts) |
How to Install WinGet Using PowerShell: The Updated Step-by-Step Guide
: The script updates your system environment paths immediately, letting you use the winget command without restarting your console. Method 2: Manual Package Deployment via PowerShell
Write-Host "Installing Winget..." Add-AppxPackage -Path $Path install winget using powershell updated
: The Microsoft Store hasn't updated core packages.
winget --version
Sometimes the simplest fix is to update "App Installer" via the Microsoft Store app directly. | Feature | | Chocolatey | Scoop |
This command displays a list of all packages installed on your system using Winget.
# Download and install Microsoft.VCLibs Invoke-WebRequest -Uri "https://aka.ms" -OutFile "$env:TEMP\VCLibs.appx" Add-AppxPackage -Path "$env:TEMP\VCLibs.appx" # Download and install Microsoft.UI.Xaml Invoke-WebRequest -Uri "https://github.com" -OutFile "$env:TEMP\Xaml.appx" Add-AppxPackage -Path "$env:TEMP\Xaml.appx" Use code with caution. Step 2: Download and Install the Latest WinGet Package
This command displays critical system information, including your Winget version, system architecture, log locations, and proxy settings. If you see a detailed output, you have successfully installed Winget. This command displays a list of all packages
Alternatively, you can trigger the Microsoft Store to update the "App Installer" package (which contains WinGet) using the following command: powershell
# Latest stable URLs (check https://github.com/microsoft/winget-cli/releases) $bundleUrl = "https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" $vclibsUrl = "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx" $licenseUrl = "https://github.com/microsoft/winget-cli/releases/latest/download/License1.xml"
# Define the URL for the Microsoft UI Xaml dependency $XamlUrl = "https://github.com" # Download the file to your temporary folder Invoke-WebRequest -Uri $XamlUrl -OutFile "$env:TEMP\Microsoft.UI.Xaml.appx" # Install the dependency package Add-AppxPackage -Path "$env:TEMP\Microsoft.UI.Xaml.appx" Use code with caution. Step 4: Download and Install the Latest Winget Package