This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.
There is a popular community-maintained script on the PowerShell Gallery that handles complex dependency checks. powershell Install-Script -Name winget-install winget-install Use code with caution. Copied to clipboard
Method 2: Direct GitHub Installation (The "True" PowerShell Method) If the Store method fails, you can pull the latest .msixbundle directly from the official Microsoft winget-cli releases powershell # 1. Define the download URL (updates to latest) "https://github.com" # 2. Download the package to your Downloads folder Invoke-WebRequest -Uri $url -OutFile "$env:USERPROFILE\Downloads\winget.msixbundle" # 3. Install the package Add-AppxPackage -Path "$env:USERPROFILE\Downloads\winget.msixbundle" Use code with caution. Copied to clipboard Method 3: Repairing via "Repair-WinGet" (Troubleshooting)
Fixes instances where the App Installer gets stuck or fails to update through the graphical interface.
How to Install Winget Using PowerShell: The Hot & Fast Method (2026 Update) install winget using powershell hot
You can combine parameters as needed. For example, to force a reinstall with debug output, you would run:
$url = "https://aka.ms/getwinget" ; $out = "winget.msixbundle" ; Invoke-WebRequest -Uri $url -OutFile $out; Add-AppxPackage $out; Remove-Item $out Use code with caution. Copied to clipboard
Once Winget is installed, you can further enhance your PowerShell experience with additional modules.
Download the latest winget-install.ps1 script from the Releases page on the official GitHub repository (https://github.com/asheroto/winget-install). This public link is valid for 7 days
winget --version
WinGet is a package manager for Windows. It helps you find apps. It installs apps for you. It updates apps automatically. It saves you a lot of time. Step 1: Open PowerShell You must open PowerShell as an administrator. Right-click the Windows Start button. Click on or PowerShell (Admin) . Click Yes on the pop-up box. Step 2: Check for WinGet
: This command triggers the download and registration of the WinGet package manager for all users. powershell Repair-WinGetPackageManager -AllUsers Use code with caution. 3. Method 2: Manual Installation via AppxPackage
Install the dependencies first, followed by the Winget bundle. Order matters; Winget will fail to register if the UI Xaml package is missing. powershell Can’t copy the link right now
Now that you have it installed, here are the first commands you should run: Search for an app: winget search Install an app: winget install Update all your apps: winget upgrade --all List installed software: winget list
Perfect for deployment scripts and fresh Windows installs.
Run PowerShell as and paste the following command to download and install the latest WinGet bundle: powershell