Install Winget Powershell -

# Download and install App Installer package $url = "https://aka.ms/getwinget" $output = "$env:TEMP\Microsoft.DesktopAppInstaller.msixbundle" Invoke-WebRequest -Uri $url -OutFile $output Add-AppxPackage -Path $output

$outdated = winget upgrade | Select-String -Pattern "^[^\s]+\s+[^\s]+\s+[^\s]+\s+[^\s]+" $outdated | ForEach-Object Write-Host $_ -ForegroundColor Yellow install winget powershell

💡 Using WinGet through PowerShell allows for "unattended" installations, meaning you can set up a brand new PC with all your favorite apps using a single script. # Download and install App Installer package $url

winget --version