Install Winget Using Powershell Hot May 2026

Summary

Prerequisites

Approach A — Recommended: Install via Microsoft Store (App Installer) Rationale: Ensures updates, integrity via Microsoft Store, simplest end-user experience.

Quick commands (admin PowerShell)

  • Force-install via PowerShell using winget from Store (if winget already present this is upgrade):
  • Get-AppxPackage -Name Microsoft.DesktopAppInstaller -AllUsers
    
    Start-Process "ms-windows-store://pdp/?productid=9NBLGGH4NNS1"
    

    (manually click Update/Install) or use management tooling (Intune, WSUS) for enterprise.

    Notes:

    Approach B — Manual MSIX bundle install (offline/managed — uses GitHub releases) Rationale: Use when Microsoft Store is unavailable (e.g., Server Core, locked-down enterprise) or to script an unattended install.

    Steps — detailed, idempotent script (run as Administrator)

    Example script (robust):

    # Variables
    $releaseApi = "https://api.github.com/repos/microsoft/winget-cli/releases/latest"
    $tempDir = "$env:TEMP\winget_install"
    New-Item -Path $tempDir -ItemType Directory -Force | Out-Null
    # Get latest release info
    $release = Invoke-RestMethod -Uri $releaseApi -UseBasicParsing
    # Choose MSIX/AppInstaller assets (filter by name)
    $asset = $release.assets | Where-Object  $_.name -match "AppInstaller.*.msixbundle$"  | Select-Object -First 1
    if (-not $asset)  Write-Error "MSIX bundle not found in release assets"; exit 1
    $downloadUrl = $asset.browser_download_url
    $msixPath = Join-Path $tempDir $asset.name
    # Download
    Invoke-WebRequest -Uri $downloadUrl -OutFile $msixPath
    # Verify signature (optional but recommended)
    # Use Get-AppxPackageManifest or signtool if available. Example using Get-AuthenticodeSignature:
    $sig = Get-AuthenticodeSignature -FilePath $msixPath
    if ($sig.Status -ne 'Valid')  Write-Warning "Package signature is $($sig.Status). Proceed with caution."
    # Install
    Add-AppxPackage -Path $msixPath -Register -DisableDevelopmentMode -ForceApplicationShutdown
    # For system-wide provisioning on images (optional): Add-AppxProvisionedPackage (requires DISM)
    

    Verification

    winget --version
    Get-Command winget
    Get-AppxPackage -Name Microsoft.DesktopAppInstaller -AllUsers
    

    Common errors & fixes

    Get-AppxPackage -Name Microsoft.DesktopAppInstaller | Remove-AppxPackage
    

    Then retry Add-AppxPackage.

    Security and trust

    Automation & enterprise deployment

    Unattended installation script (concise)

    # Run as admin
    $msixUrl = "https://github.com/microsoft/winget-cli/releases/download/vX.Y.Z/AppInstaller.msixbundle" # replace with actual URL
    $msixPath = "$env:TEMP\AppInstaller.msixbundle"
    Invoke-WebRequest -Uri $msixUrl -OutFile $msixPath
    Add-AppxPackage -Path $msixPath -DisableDevelopmentMode -Register -ForceApplicationShutdown
    

    (Replace URL with the desired release asset and validate signature before use.)

    Rollback / removal

    Get-AppxPackage -Name Microsoft.DesktopAppInstaller | Remove-AppxPackage
    
    Get-AppxPackage -AllUsers -Name Microsoft.DesktopAppInstaller | Remove-AppxPackage
    

    Testing after install

    winget install --id=7zip.7zip -e --silent
    

    Appendix — quick troubleshooting checklist

    If you want, I can:

    Install Winget Using PowerShell: A Step-by-Step Guide

    Windows Package Manager, also known as Winget, is a package manager for Windows that allows users to easily install, update, and manage software on their systems. It was introduced by Microsoft in 2020 and has since become a popular tool among Windows users. In this article, we will guide you on how to install Winget using PowerShell.

    What is Winget?

    Winget is a command-line tool that allows users to manage packages on their Windows systems. It provides a simple and efficient way to install, update, and manage software, making it a popular choice among developers and power users. With Winget, you can easily search for and install packages from a vast repository of software, including popular applications like Google Chrome, Visual Studio Code, and more.

    Prerequisites

    Before you can install Winget using PowerShell, you need to ensure that your system meets the following prerequisites:

    Install Winget Using PowerShell

    To install Winget using PowerShell, follow these steps:

    winget install --id Microsoft.AppStore
    

    This command will install the Microsoft App Store, which includes Winget. 4. Verify Winget installation: Once the installation is complete, run the command winget --version again to verify that Winget is installed correctly.

    Install Winget using PowerShell (Alternative Method)

    Alternatively, you can install Winget using PowerShell by running the following command:

    Invoke-WebRequest -Uri https://aka.ms/win32-x64-wingt | Out-File -FilePath $env:TEMP\winget.msi; msiexec /i $env:TEMP\winget.msi /quiet; rm $env:TEMP\winget.msi
    

    This command downloads the Winget installer and installs it silently.

    Configure Winget

    Once Winget is installed, you can configure it to suit your needs. Here are a few basic configuration options:

    Conclusion

    In this article, we have guided you on how to install Winget using PowerShell. Winget is a powerful package manager for Windows that makes it easy to install, update, and manage software on your system. With Winget, you can easily search for and install packages from a vast repository of software, including popular applications. We hope this article has been helpful in getting you started with Winget.

    Troubleshooting

    If you encounter any issues during the installation process, here are a few troubleshooting tips:

    Frequently Asked Questions

    Q: What is Winget? A: Winget is a package manager for Windows that allows users to easily install, update, and manage software on their systems. install winget using powershell hot

    Q: How do I install Winget using PowerShell? A: You can install Winget using PowerShell by running the command winget install --id Microsoft.AppStore or by using the alternative method: Invoke-WebRequest -Uri https://aka.ms/win32-x64-wingt | Out-File -FilePath $env:TEMP\winget.msi; msiexec /i $env:TEMP\winget.msi /quiet; rm $env:TEMP\winget.msi.

    Q: What are the prerequisites for installing Winget? A: The prerequisites for installing Winget include Windows 10 or later, PowerShell 5.1 or later, and the Microsoft App Store.

    Here’s a concise review of the phrase "install winget using powershell hot" — likely a search query or command attempt.


    Before you try to install winget using PowerShell, open a PowerShell (Admin) window and type:

    winget --version
    

    If you see a version number (e.g., v1.7.xxx), you are done. If you get an error, proceed below.

    The Fix: You are not running PowerShell as Administrator. Right-click PowerShell and select Run as Administrator. The Add-AppxPackage command requires elevated rights to install for all users.

    The Fix: You are missing the Visual C++ Runtime. Install it using this PowerShell snippet:

    Invoke-WebRequest -Uri "https://aka.ms/vs/17/release/vc_redist.x64.exe" -OutFile "$env:TEMP\vc_redist.x64.exe"
    Start-Process -FilePath "$env:TEMP\vc_redist.x64.exe" -ArgumentList "/quiet /norestart" -Wait
    

    If you need to deploy Winget across 100 PCs yesterday, use this aggressive one-liner. This script checks your OS architecture, downloads the correct bundle, and installs it silently via PowerShell.

    Copy and paste this entire block into PowerShell (Admin):

    $progressPreference = 'silentlyContinue'; Write-Host "Downloading Winget..." -ForegroundColor Cyan; Invoke-WebRequest -Uri "https://aka.ms/getwinget" -OutFile "$env:TEMP\Microsoft.DesktopAppInstaller.msixbundle"; Add-AppxPackage -Path "$env:TEMP\Microsoft.DesktopAppInstaller.msixbundle"; Write-Host "Installation Complete!" -ForegroundColor Green
    

    What this does:

    Note: If you get a "No applicable app packages" error, you need to install the VCLibs dependencies first (see troubleshooting below).

    The keyword "hot" implies speed and efficiency. We aren’t going to stroll through the Microsoft Store clicking buttons. We are going to use PowerShell—the most powerful shell in the Windows ecosystem—to install Winget in under 60 seconds.

    There are three "hot" methods we will cover: Summary

    # Install Microsoft's VCLibs dependencies first
    Add-AppxPackage -Path "https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx"
    

    This is the most popular current method. It uses the Microsoft Store ID to trigger an automatic install/update.

    Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe
    

    Why this works: This command tells PowerShell to look for the "App Installer" (which contains winget) by its family name. If it is not installed or is outdated, it triggers a background update/install from the Microsoft Store.


    Back
    Top