Install Winget Using Powershell Jun 2026

Install Winget Using Powershell Jun 2026

# 4. Find the .appxbundle asset (This contains the App Installer) $asset = $response.assets catch Write-Error "An error occurred: $_"

# 1. Check for Administrator privileges if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) Write-Warning "This script requires Administrator privileges." break install winget using powershell

Use WinGet to install and manage applications | Microsoft Learn install winget using powershell

Close

Item added to your cart.

Checkout

# 4. Find the .appxbundle asset (This contains the App Installer) $asset = $response.assets catch Write-Error "An error occurred: $_"

# 1. Check for Administrator privileges if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) Write-Warning "This script requires Administrator privileges." break

Use WinGet to install and manage applications | Microsoft Learn

Close
Loading:
--:-- --:--

Privacy Settings

This site uses cookies. For information, please read our cookies policy. Cookies Policy

Allow All
Manage Consent Preferences