Install Winget Using Powershell Hot |work| Jun 2026
Run these commands in a PowerShell window with privileges: Download the package : powershell
Winget is a package manager for Windows that allows you to easily install, update, and manage software on your machine. It's similar to package managers like apt-get on Linux or Homebrew on macOS. With Winget, you can search for software, install it, and keep it up-to-date with just a few simple commands.
Open a PowerShell window (to refresh environment variables). Type the following command: powershell winget --version Use code with caution. install winget using powershell hot
Run this command to install the winget-install script: powershell Install-Script -Name winget-install Use code with caution.
(Replace URL with the desired release asset and validate signature before use.) Run these commands in a PowerShell window with
$downloadUrl = $asset.browser_download_url $msixPath = Join-Path $tempDir $asset.name
:
"apps": [ "id": "Microsoft.VisualStudioCode", "version": "latest" , "id": "Git.Git", "version": "latest" , "id": "Google.Chrome", "version": "latest" ]
: The script automatically detects your system architecture (x86/x64 or ARM), verifies Windows version compatibility, and installs Winget with all necessary dependencies. Open a PowerShell window (to refresh environment variables)
Run the script:
Invoke-WebRequest -Uri https://aka.ms/win32-x64-wingt | Out-File -FilePath $env:TEMP\winget.msi; msiexec /i $env:TEMP\winget.msi /quiet; rm $env:TEMP\winget.msi