Install Winget Using Powershell Updated Jun 2026
| Parameter | Function | |-----------|----------| | -Force | Forces a complete reinstallation of WinGet and all dependencies | | -ForceClose | Automatically closes interfering processes to improve installation success rates | | -Debug | Enables debug mode, displaying detailed information about each step | | -Wait | Pauses the script upon completion, allowing you to review the output before the window closes | | -AlternateInstallMethod | Uses an alternative installation method when the primary method fails |
] typically resolves this automatically. * **Source Errors:** you encounter errors like ` 0x801901a0
This guide covers about installing and updating Winget using PowerShell—specifically focusing on current, updated methods as of 2025. install winget using powershell updated
Start-Process "ms-windows-store://pdp/?productid=9NBLGGH4NNS1"
Once Winget is installed, you may want to configure it to suit your needs. Here are a few basic configuration options: | Parameter | Function | |-----------|----------| | -Force
If this is for an or enterprise network environment Any specific error codes you are currently encountering
Method 1: Using the Microsoft.WinGet.Client Module (Recommended) Here are a few basic configuration options: If
# Install the WinGet client module from the PowerShell Gallery
. 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