Install Winget Using Powershell Updated [extra Quality] May 2026

To install and update (Windows Package Manager) using PowerShell, use the official Microsoft.WinGet.Client

. This is the most reliable method for modern systems, including Windows 10, 11, and Windows Sandbox Microsoft Learn 🛠️ Quick Installation (The "Modern" Way) Run these commands in an Administrative PowerShell Install the WinGet Client module: powershell

Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery Use code with caution. Copied to clipboard Bootstrap/Repair the WinGet executable: powershell Repair-WinGetPackageManager -AllUsers Use code with caution. Copied to clipboard Verify the installation: powershell winget --version Use code with caution. Copied to clipboard 📦 Alternative Manual Method (Direct Download)

If the module method fails or you are on a restricted system, you can manually download and install the package bundle directly from Microsoft's servers Stack Overflow powershell # Download the latest bundle Invoke-WebRequest -Uri "https://aka.ms/getwinget" "winget.msixbundle" # Install the package Add-AppxPackage winget.msixbundle # Clean up Remove-Item winget.msixbundle Use code with caution. Copied to clipboard 🔄 How to Update WinGet WinGet typically updates itself via the Microsoft Store

(as the "App Installer"). However, you can force an update through PowerShell Update All Apps (Including WinGet): powershell winget upgrade --all Use code with caution. Copied to clipboard Update via PowerShell Module: If you used the Microsoft.WinGet.Client

module, simply run the repair command again to pull the latest stable version: powershell Repair-WinGetPackageManager Use code with caution. Copied to clipboard ⚠️ Common Troubleshooting Missing Dependencies: On older systems or Windows Server, WinGet requires Microsoft UI Xaml Microsoft Learn Repair-WinGetPackageManager cmdlet usually handles these automatically Path Issues:

isn't recognized after installation, restart your PowerShell session or your computer to refresh environment variables PowerShell Gallery Execution Policy: If you can't run scripts, set the policy temporarily: powershell Set-ExecutionPolicy RemoteSigned -Scope Use code with caution. Copied to clipboard Export a list of your current apps to a "winget import" file. Set up a scheduled task to keep all your software updated daily. Configure settings like progress bar styles or experimental features.

Use WinGet to install and manage applications | Microsoft Learn

Installing the Windows Package Manager (Winget) via PowerShell is the most efficient way to manage software on Windows 10 and 11. While Winget typically comes pre-installed via the App Installer, it can sometimes be missing, outdated, or corrupted.

This guide provides the updated, step-by-step process to manually install or repair Winget using PowerShell. Prerequisites

Before starting, ensure your system meets these requirements: OS: Windows 10 (version 1809 or later) or Windows 11. Permissions: You must run PowerShell as an Administrator.

Internet: An active connection to download the necessary packages from GitHub. Step 1: Open PowerShell as Administrator

To make changes to system packages, you need elevated privileges. Press the Windows Key. Type PowerShell.

Right-click Windows PowerShell and select Run as Administrator. Step 2: Check for Existing Installation

First, verify if Winget is already installed or if it just needs an update. Type the following command:winget --version If a version number appears: You already have it.

If you see "The term 'winget' is not recognized": Proceed with the installation steps below. Step 3: Install Winget via PowerShell

Since Winget is distributed as part of the Microsoft App Installer, we will download the latest bundle directly from the official Microsoft GitHub repository. 1. Download the Latest Release

Copy and paste this script into your PowerShell window to fetch the latest installer: powershell

$repo = "microsoft/winget-cli" $url = "https://github.com" $asset = Invoke-RestMethod -Uri $url | Select-Object -ExpandProperty assets | Where-Object $_.name -like "*.msixbundle" $downloadUrl = $asset.browser_download_url Invoke-WebRequest -Uri $downloadUrl -OutFile "$env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" Use code with caution. 2. Install the Package

Once the download is complete, run the installation command: powershell

Add-AppxPackage -Path "$env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" Use code with caution. Step 4: Install Dependencies (If Needed)

Winget requires specific UI frameworks to function. If the installation fails with a "missing dependency" error, run these commands to install the VCLibs: powershell

$vclibsUrl = "https://aka.ms" Invoke-WebRequest -Uri $vclibsUrl -OutFile "$env:TEMP\VCLibs.appx" Add-AppxPackage -Path "$env:TEMP\VCLibs.appx" Use code with caution. Step 5: Verify the Installation Restart your PowerShell session and type:winget --version You should now see the current version (e.g., v1.7.10861).

💡 Quick Start Tip: Try searching for an app immediately by typing winget search vlc. Troubleshooting Common Issues 404 Not Found

If the script fails to download, the GitHub API might be rate-limited or the naming convention has changed. You can manually download the .msixbundle from the official Winget GitHub Releases page. Execution Policy Error

If PowerShell blocks the script, run this command and try again:Set-ExecutionPolicy RemoteSigned -Scope Process App Installer Not Updating

If the Store version is stuck, you may need to reset the App Installer via:Get-AppxPackage Microsoft.DesktopAppInstaller | Reset-AppxPackage Why Use Winget? Automation: Install dozens of apps with one command.

Updates: Run winget upgrade --all to update every app on your PC at once.

Cleanliness: No more hunting for .exe or .msi files on sketchy websites.

If you'd like to know more about using Winget, tell me if you're interested in: Bulk installation scripts for new PC setups. Exporting your current app list to a backup file. Uninstalling stubborn bloatware using Winget commands.

To install or update (Windows Package Manager) using PowerShell, you can use the official Microsoft.WinGet.Client

module or a direct installation script. While WinGet is typically pre-installed on Windows 10 (1809+) and Windows 11, these methods are useful for Server environments, sandboxes, or repairing broken installations. Microsoft Learn

Option 1: Using the Microsoft.WinGet.Client Module (Recommended)

This is the most "updated" and official programmatic method. It installs the necessary PowerShell module and then uses a repair cmdlet to bootstrap the WinGet client and its dependencies. Open PowerShell as Administrator. Run the following commands: powershell # Install the NuGet provider if not already present Install-PackageProvider -Name NuGet -Force | Out-Null

# Install the WinGet client module from the PowerShell Gallery

Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery | Out-Null

# Bootstrap or repair the WinGet package manager and all dependencies Repair-WinGetPackageManager -AllUsers Use code with caution. Copied to clipboard Option 2: One-Line Installation Script

For a quick setup, community-maintained scripts can automate the download of the .msixbundle

and its dependencies (like UI Xaml and VC++ libs) from GitHub. Run this command in an elevated PowerShell prompt: powershell Install-Script -Name winget-install -Force; winget-install Use code with caution. Copied to clipboard

Note: You may need to set your execution policy to allow scripts first: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Option 3: Manual Install via PowerShell (for Windows Server/IoT) install winget using powershell updated

If you are on a system without the Microsoft Store (like Windows Server 2022), you must manually add the package using Add-AppxPackage Microsoft Learn the latest .msixbundle official WinGet GitHub releases Install it using PowerShell: powershell Add-AppxPackage -Path

"C:\Path\To\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" Use code with caution. Copied to clipboard Microsoft Learn Verification To confirm WinGet is installed and ready, type: powershell winget --version Use code with caution. Copied to clipboard

If successful, it will return the current version number (e.g.,

Once installed, you can keep all your Windows apps (including WinGet itself) updated by running winget upgrade --all


2. Validate Source

Ensure WinGet can connect to the Microsoft repository:

winget source list

Step 2: Install Winget from Scratch Using PowerShell

If Winget is missing completely, you have two reliable PowerShell-based methods.

Download the .msixbundle

$tempFile = "$env:TEMP\WingetUpdate.msixbundle" Invoke-WebRequest -Uri $bundleUrl -OutFile $tempFile

Step 4: Clean up

Remove-Item $output

This script checks GitHub for the latest stable Winget release, downloads the MSIX bundle, and installs it as an Appx package. Note that it requires an active internet connection and may need the Visual C++ redistributable on very old systems.

Clean up

Remove-Item $tempFile -Force

Note: If you encounter an error about the package already being installed for another user, use:

Add-AppxPackage -Path $tempFile -ForceUpdateFromAnyVersion

After the command finishes, restart PowerShell and verify:

winget --version

Final Thoughts

Installing or updating winget via PowerShell is fast, scriptable, and reliable—even without the Microsoft Store. Whether you’re provisioning a new PC or maintaining a fleet of devices, these PowerShell methods ensure you always have the latest Windows Package Manager ready to go.

Stay updated, stay efficient.


Have questions or a better PowerShell one-liner? Drop a comment below or tag me on Twitter/X @YourHandle.

To install winget (Windows Package Manager) using PowerShell, you need to ensure the App Installer package is present and updated. While modern Windows 10 and 11 systems usually have it pre-installed, it sometimes needs a manual "kick" or update via the command line. 🛠️ Prerequisites OS: Windows 10 (version 1809 or later) or Windows 11. Permissions: Run PowerShell as Administrator. 🚀 Installation Steps 1. Check for Existing Installation First, see if winget is already active on your system. powershell winget --version Use code with caution. Copied to clipboard If a version number appears: You are good to go!

If "CommandNotFoundException" appears: Proceed to the steps below. 2. Download the Latest Installer

The easiest way to install winget is to pull the .msixbundle directly from the official GitHub repository. powershell

$url = "https://github.com" $dest = "$env:TEMP\winget.msixbundle" Invoke-WebRequest -Uri $url -OutFile $dest Use code with caution. Copied to clipboard 3. Install the Package Run this command to register the package with Windows. powershell Add-AppxPackage -Path $dest Use code with caution. Copied to clipboard 4. Verify the Install Restart your PowerShell window and run: powershell winget --info Use code with caution. Copied to clipboard 💡 Troubleshooting Common Issues

Dependency Error: If the installation fails due to missing UI frameworks, you can install the VCLibs dependency: powershell Add-AppxPackage -Uri "https://aka.ms" Use code with caution. Copied to clipboard

App Store Fix: Sometimes the simplest fix is to update "App Installer" via the Microsoft Store app directly.

Environment Variables: If winget isn't recognized after installation, try restarting your PC to refresh the system path. 📝 Essential Commands to Start Once installed, try these to see the power of the tool: Search for an app: winget search Install an app: winget install Update all apps: winget upgrade --all

Installing winget using PowerShell: A Step-by-Step Guide

As of Windows 11 and Windows 10 version 1809, Microsoft introduced a new package manager called winget. This tool allows users to easily discover, install, and manage packages (applications) on their Windows machines. In this article, we'll walk through the process of installing winget using PowerShell.

Prerequisites

Before you begin, ensure you meet the following requirements:

  • Windows 10 version 1809 (October 2018 Update) or later
  • Windows 11
  • PowerShell 5.1 or later (comes pre-installed on Windows 10 and Windows 11)

Installing winget using PowerShell

Open PowerShell as an administrator and run the following command to check if winget is already installed:

Get-Command winget -ErrorAction Stop

If winget is not installed, you'll see an error message. To install winget, run the following command:

Add-AppxPackage -Uri https://aka.ms/Microsoft.VCLibs.Package

This command installs the Microsoft Visual C++ Libraries package, which is required for winget to function.

Next, install the winget package:

Add-AppxPackage -Uri https://github.com/microsoft/winget-cli/releases/download/v1.1.0/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.appx

Note: You can check the winget releases page for the latest version and update the URI accordingly.

Verifying winget Installation

After installation, verify that winget is working by running:

winget --version

You should see the version number of winget installed on your system.

Updating winget

To update winget to the latest version, run:

winget update --self

This command updates winget to the latest version available.

Troubleshooting

If you encounter issues during installation or updating, try the following: To install and update (Windows Package Manager) using

  • Ensure you're running PowerShell as an administrator.
  • Check that your system meets the prerequisites.
  • Try reinstalling winget using the same commands.

Example Use Cases

Now that you have winget installed, you can use it to manage packages on your system. Here are a few examples:

  • Search for a package: winget search git
  • Install a package: winget install git
  • List installed packages: winget list

Conclusion

In this article, we walked through the process of installing winget using PowerShell. With winget, you can easily manage packages on your Windows machine. Make sure to keep winget up to date to ensure you have the latest features and security patches.

Additional Resources

Installing winget using PowerShell

winget is a package manager for Windows, which allows you to easily install and manage software on your system. Here's how you can install winget using PowerShell:

Prerequisites:

  • Windows 10 or later ( winget is not available on earlier versions of Windows)
  • PowerShell 5.1 or later (you can check your PowerShell version by running $PSVersionTable.PSVersion in PowerShell)

Step 1: Check if winget is already installed

Before installing winget, let's check if it's already installed on your system. Open PowerShell as an administrator and run the following command:

winget --version

If winget is already installed, you should see the version number. If not, proceed to the next step.

Step 2: Install winget

To install winget, run the following command in PowerShell:

Add-AppPackage -Online -DisableDevelopmentMode -Register "$env:LOCALAPPDATA\Microsoft\WinGet\WinGet.msix"

This command will download and install the winget package.

Step 3: Verify winget installation

Once the installation is complete, verify that winget is installed by running:

winget --version

You should see the version number, for example: v1.0.0.

Step 4: Update winget (optional)

If you want to ensure you have the latest version of winget, run:

winget update --self

This command will update winget to the latest version.

Troubleshooting tips:

  • If you encounter issues during installation, try running PowerShell as an administrator.
  • If you see an error message saying that the package is not found, try restarting PowerShell and retrying the installation command.

That's it! You should now have winget installed on your system using PowerShell. You can use winget to install and manage software on your Windows system.

Here is a sample paper:

Install winget using PowerShell

Introduction

winget is a package manager for Windows that allows you to easily install and manage software on your system. In this guide, we will walk you through the steps to install winget using PowerShell.

Prerequisites

  • Windows 10 or later
  • PowerShell 5.1 or later

Step-by-Step Instructions

  1. Check if winget is already installed
  2. Install winget
  3. Verify winget installation
  4. Update winget (optional)

Commands

  • winget --version
  • Add-AppPackage -Online -DisableDevelopmentMode -Register "$env:LOCALAPPDATA\Microsoft\WinGet\WinGet.msix"
  • winget update --self

Troubleshooting tips

  • Run PowerShell as an administrator
  • Restart PowerShell and retry installation command if package is not found

By following these steps, you should be able to install winget using PowerShell and start managing software on your Windows system.

WinGet (Windows Package Manager) has become an essential tool for developers and IT professionals, but it isn't always active by default—especially on older Windows 10 versions, Windows Server, or fresh installations.

This guide provides the most up-to-date PowerShell methods to install WinGet in 2026, ranging from quick one-liners to robust manual installations for restricted environments. Method 1: The One-Line Script (Recommended for Most Users)

If you want the fastest, automated way to install WinGet and all its required dependencies (like VCLibs and UI Xaml), you can use a community-verified script. The asheroto/winget-install script is widely used because it detects your system architecture and fetches the latest version automatically. To run it, open PowerShell as Administrator and paste: powershell

# Installs WinGet immediately using a trusted community script irm asheroto.com/winget | iex Use code with caution.

Note: Using -Force (e.g., irm asheroto.com/winget | iex -Arguments "-Force") will reinstall WinGet even if it's already present, which is helpful for repairing broken installations. Method 2: Official "Repair-WinGet" Method

Microsoft now provides a dedicated PowerShell module, Microsoft.WinGet.Client, which includes a Repair-WinGetPackageManager cmdlet. This is the official way to "bootstrap" WinGet on a system where it is missing or corrupted. Install the WinGet Client module: powershell

Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery Use code with caution. Bootstrap WinGet: powershell

# Use -AllUsers for system-wide installation Repair-WinGetPackageManager -AllUsers Use code with caution. Method 3: Manual Installation (Best for Servers/Sandbox)

In restricted environments like Windows Server 2025 or Windows Sandbox, the Microsoft Store isn't available to handle background updates. You must manually install the dependencies before the WinGet bundle. Step 2: Install Winget from Scratch Using PowerShell

Step 1: Download PrerequisitesYou need the following packages from the official WinGet GitHub releases:

MSIX Bundle: Look for the latest file ending in .msixbundle.

License File: The .xml license file associated with the release.

Dependencies: Microsoft.VCLibs and Microsoft.UI.Xaml (usually found in the release notes or as separate .appx downloads).

Step 2: Install via PowerShellOnce downloaded, run these commands in order: powershell

# 1. Install Dependencies Add-AppxPackage -Path "C:\Path\To\Microsoft.VCLibs.x64.14.00.Desktop.appx" Add-AppxPackage -Path "C:\Path\To\Microsoft.UI.Xaml.2.8.appx" # 2. Install the WinGet Bundle Add-AppxPackage -Path "C:\Path\To\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" # 3. Register the License (Required for full functionality) Add-AppxProvisionedPackage -Online -PackagePath "C:\Path\To\Microsoft.DesktopAppInstaller.msixbundle" -LicensePath "C:\Path\To\License.xml" Use code with caution. Method 4: Quick Force-Update (Already have "App Installer")

If you have the "App Installer" but the winget command still isn't working, it may just need to be registered for your user profile. Run this to register the existing package: powershell

Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe Use code with caution. Post-Installation Checklist

After installation, verify that WinGet is correctly set up by opening a new PowerShell window and running: powershell # Checks the installed version winget -v Use code with caution.

If it returns a version number (e.g., v1.9.xxxx), your installation was successful. You can now use PDQ's guide to keep your packages updated or Microsoft's documentation to explore advanced commands like winget upgrade --all.

Use WinGet to install and manage applications | Microsoft Learn

Installing Winget using PowerShell: A Step-by-Step Guide (Updated)

As a Windows user, you're likely familiar with the hassle of searching for and downloading software from various websites. However, with the introduction of Winget, a package manager for Windows, you can now easily discover, install, and manage software from a single interface. In this article, we'll walk you through the process of installing Winget using PowerShell, updated for the latest versions.

What is Winget?

Winget is a package manager for Windows that allows you to easily discover, install, and manage software on your system. Developed by Microsoft, Winget provides a unified way to manage software packages, making it easier to keep your system up-to-date and secure. With Winget, you can search for and install software from a vast repository of packages, all from the comfort of your command line or PowerShell.

Prerequisites

Before installing Winget using PowerShell, ensure you meet the following prerequisites:

  1. Windows 10 or later: Winget is available on Windows 10 and later versions. If you're running an earlier version of Windows, you may need to upgrade to use Winget.
  2. PowerShell 5.1 or later: You'll need PowerShell 5.1 or later installed on your system to run the installation commands.
  3. Internet connection: You'll need an active internet connection to download and install Winget.

Installing Winget using PowerShell

To install Winget using PowerShell, follow these steps:

  1. Open PowerShell as Administrator: Right-click on the Start button and select "Windows PowerShell (Admin)" or type "PowerShell" in the Windows Search bar, right-click on the result, and select "Run as administrator".
  2. Verify PowerShell version: Run the following command to verify you're running PowerShell 5.1 or later:
$PSVersionTable.PSVersion

If you're running an earlier version, update PowerShell before proceeding. 3. Install Winget: Run the following command to install Winget:

winget install --self

If you don't have Winget installed, this command will install it for you. If you already have Winget installed, this command will update it to the latest version.

Verify Winget Installation

After installation, verify Winget is working correctly by running:

winget --version

This command should display the version of Winget installed on your system.

Configuring Winget

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

  1. Set Winget source: You can set the source for Winget packages using the following command:
winget source set winget https://api.github.com/repos/microsoft/winget-pkgs

This sets the source to the official Winget package repository.

Using Winget

Now that Winget is installed and configured, you can start using it to manage software on your system. Here are a few basic examples:

  1. Search for packages: Search for packages using the following command:
winget search <package_name>

Replace <package_name> with the name of the software you're looking for.

  1. Install packages: Install packages using the following command:
winget install <package_name>

Replace <package_name> with the name of the software you want to install.

  1. List installed packages: List all installed packages using the following command:
winget list

This command displays a list of all packages installed on your system using Winget.

Troubleshooting

If you encounter issues during installation or while using Winget, here are a few troubleshooting tips:

  1. Check Winget logs: Check the Winget logs for errors using the following command:
winget --debug

This command displays detailed logging information that can help diagnose issues.

  1. Update Winget: Ensure you're running the latest version of Winget by running:
winget install --self

This command updates Winget to the latest version.

Conclusion

In this article, we've shown you how to install Winget using PowerShell, updated for the latest versions. With Winget, you can easily discover, install, and manage software on your Windows system. Whether you're a developer, sysadmin, or power user, Winget provides a convenient way to manage software packages, saving you time and effort.

By following the steps outlined in this article, you should now have Winget installed and configured on your system. Happy package managing!

1. Check Version

Open a new PowerShell window and run:

winget --version

Output should look like: v1.7.11261 or newer.

Gift this article