logo

Install Winget Using Powershell Updated

Install Winget Using Powershell Updated

Add-AppxPackage -Path ".\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
Add-AppxPackage -Path "vclibs.appx"

For enterprise environments managing many machines, you can use PowerShell DSC:

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

A Pokémothim com a sua cara!

Personalize do seu jeito!

Temas

Padrão

Fechar