Install Winget Using Powershell Updated Link
Then install from the Store.
If WinGet appears to be installed but still unrecognized:
winget-install -Force
When using configuration management tools like SCCM, Intune, or Ansible, the -Force parameter ensures silent reinstallation, and the -NoExit parameter can be used in CI/CD pipelines to maintain session persistence after installation completes. install winget using powershell updated
Add-AppxProvisionedPackage -Online -PackagePath .\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle -LicensePath .\e53e159d00e04f729cc2180cffd1c02e_License1.xml
Before diving into the installation, ensure your system meets the following requirements. Winget is relatively modern, so older builds may require extra steps.
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery Then install from the Store
To prepare your PowerShell environment, open PowerShell as an Administrator and run: powershell Set-ExecutionPolicy Bypass -Scope Process -Force Use code with caution. Method 1: The Modern Automated Script (Recommended)
winget --version winget search git
| Error | Fix | |-------|-----| | Add-AppxPackage fails | Enable Developer Mode: Settings > Update & Security > For developers | | 0x80073D05 | Install all missing dependencies (VCLibs, UI.Xaml) | | winget not recognized | Log off / restart, or add %LOCALAPPDATA%\Microsoft\WindowsApps to PATH | | Windows LTSC | Install App Installer from Store using wsreset -i or manually via .appx | Winget is relatively modern, so older builds may
Now that you have Winget installed, you can use it to manage software on your system. Here are some basic commands to get you started:
This method is particularly useful in enterprise environments where direct execution of remote scripts may be restricted by security policies.
# Try opening Microsoft Store App Installer page Start-Process "ms-windows-store://pdp/?ProductId=9NBLGGH4NNS1" Write-Output "Opened Microsoft Store. Please install App Installer from the Store, then re-run this script." exit 0
if (-not $asset) Write-Error "No .msixbundle asset found." exit 1
Get-AppxPackage Microsoft.DesktopAppInstaller | Remove-AppxPackage