Install Winget Using Powershell Updated

After installation, verify everything is working correctly.

| Issue | PowerShell Fix | |--------|----------------| | Add-AppxPackage fails | Enable developer mode or sideloading: Add-AppxPackage -AllowUnsigned | | Winget not in PATH | Log off/on or restart shell after installation | | Access denied | Run PowerShell as Administrator | | Missing dependencies | Ensure Windows Update is running; winget requires VCLibs and UI.Xaml |

# Run as Admin
Set-ExecutionPolicy RemoteSigned -Force

For enterprise environments managing many machines, you can use PowerShell DSC: install winget using powershell updated

Configuration InstallWinget 
    Import-DscResource -ModuleName 'PSDesiredStateConfiguration'
Script InstallAppInstaller 
    GetScript =   return @ Result = $false  
    SetScript = 
        # Download and install logic from Method 2
        $url = "https://aka.ms/getwinget"
        Invoke-WebRequest -Uri $url -OutFile "$env:TEMP\winget.msixbundle"
        Add-AppxPackage -Path "$env:TEMP\winget.msixbundle"
TestScript =  return (Get-Command winget -ErrorAction SilentlyContinue) -ne $null

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.


This essay serves both as a practical manual and a conceptual overview, suitable for system administrators, DevOps engineers, and advanced Windows users. After installation, verify everything is working correctly


This guide shows a quick, updated method to install or update the Windows Package Manager (winget) using PowerShell. It covers prerequisites, installation steps, verification, and troubleshooting.

Winget is not a standalone download; it is distributed as part of the App Installer package from the Microsoft Store. Consequently, installing or updating Winget effectively means ensuring the latest version of the App Installer is present on your system. While Windows 10 (build 1809+) and Windows 11 typically include Winget, some enterprise-managed systems, LTSC (Long-Term Servicing Channel) editions, or customized images may lack it. PowerShell provides a scriptable, repeatable method to address this. For enterprise environments managing many machines, you can

$downloadUrl = $asset.browser_download_url $outputPath = "$env:TEMP\winget.msixbundle" Invoke-WebRequest -Uri $downloadUrl -OutFile $outputPath