Install Winget Using Powershell Updated [No Ads]
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.
$tempFile = "$env:TEMP\WingetUpdate.msixbundle" Invoke-WebRequest -Uri $bundleUrl -OutFile $tempFile
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:
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: install winget using powershell updated
Example Use Cases
Now that you have winget installed, you can use it to manage packages on your system. Here are a few examples:
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 via PowerShell is the most efficient method for system administrators and power users. As of April 2026, the updated process leverages the Microsoft.WinGet.Client module or direct registration of the App Installer component.
Method 1: Using the Microsoft.WinGet.Client Module (Recommended)
This is the official programmatic approach, often used for bootstrapping environments like Windows Sandbox Launch PowerShell as Administrator. Install the client module: powershell
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery ``` Use code with caution. Copied to clipboard Bootstrap WinGet: Repair-WinGetPackageManager
cmdlet to automatically install WinGet and its required dependencies (VCLibs and UI Xaml) powershell Repair-WinGetPackageManager -AllUsers ``` Use code with caution. Copied to clipboard Method 2: Force-Registering the App Installer
If the WinGet tool is technically present but not responding, you can force-register the App Installer package via PowerShell Registration Command: powershell
Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe ``` Use code with caution. Copied to clipboard Verification: After registration, type winget --version to confirm functionality Method 3: Direct Download Script (GitHub Release) For a "one-and-done" manual install from the latest GitHub releases , you can use this compact script powershell
$url = (Invoke-RestMethod https://api.github.com/repos/microsoft/winget-cli/releases/latest).assets.browser_download_url | Where-Object $_.EndsWith( ".msixbundle" ) Invoke-WebRequest -Uri $url -OutFile "WinGet.msixbundle" Add-AppxPackage -Path "WinGet.msixbundle" Remove-Item "WinGet.msixbundle" ### **Common Troubleshooting** * **System Requirements:** Ensure you are on Windows
) or later. * **Missing Dependencies:** WinGet requires **VCLibs** and **Microsoft.UI.Xaml**. The `Repair-WinGetPackageManager` cmdlet
] typically resolves this automatically. * **Source Errors:** you encounter errors like ` 0x801901a0
resetting your sources: ```powershell winget source reset --force ```
Would you like a specialized PowerShell script to automate this installation across multiple remote machines? Use code with caution. Copied to clipboard
Use WinGet to install and manage applications | Microsoft Learn 24 Mar 2026 —
Installing and updating Winget using PowerShell offers a robust, scriptable approach to managing the Windows Package Manager. Whether you opt for the interactive Store link or the fully automated GitHub method, PowerShell provides the control and repeatability required for both individual workstations and enterprise fleets. By following the steps outlined above — from running an elevated PowerShell session to verifying the final installation — you ensure that Winget remains a reliable tool in your Windows management arsenal. As Microsoft continues to evolve Winget, mastering its installation via PowerShell will prove an enduring skill for any Windows professional. Remove-Item $output
This essay serves both as a practical manual and a conceptual overview, suitable for system administrators, DevOps engineers, and advanced Windows users.
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:
Installing Winget using PowerShell
To install Winget using PowerShell, follow these steps:
$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:
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:
winget search <package_name>
Replace <package_name> with the name of the software you're looking for. This script checks GitHub for the latest stable
winget install <package_name>
Replace <package_name> with the name of the software you want to install.
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:
winget --debug
This command displays detailed logging information that can help diagnose issues.
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!
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
The easiest, most up-to-date route is the Microsoft Store App Installer package, which contains winget.
Steps:
Start-Process "ms-windows-store://pdp/?ProductId=9NBLGGH4NNS1"
winget --version
Notes:
This installs the official App Installer package that contains winget.
Run this PowerShell command to open the Store entry (works on systems with Microsoft Store):
start ms-windows-store://pdp/?productid=9NBLGGH4NNS1
If you cannot access the Microsoft Store, use Step 3b.