Install Winget Using Powershell Updated < 2025 >
But the most straightforward method remains running the PowerShell script from Step 3 once every 2–3 months.
Method 1: The Modern Automated PowerShell Script (Recommended)
Here is the updated, comprehensive guide on how to install, verify, and troubleshoot WinGet using PowerShell. install winget using powershell updated
Keeping Winget updated ensures you have access to the latest features (like configuration files and improved parsing). If you used Method 2 above ( Repair-WinGetPackageManager ), you have already updated it. However, if you have an older version, here is the best way to refresh it:
Next, install the winget package:
While Winget typically comes pre-installed via the Microsoft Store, it can frequently become corrupted, go missing on enterprise LTSB/LTSC editions, or require a completely headless installation on remote servers.
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 But the most straightforward method remains running the
Surprisingly, Winget can update its own host package:
Starting with Winget 1.5 and later, Microsoft introduced a winget upgrade command that can upgrade the package manager itself: If you used Method 2 above ( Repair-WinGetPackageManager