It is possible to install microsoft app installer using the command line?

I reinstall windows all day on client pcs.

Right now I am using as script to download apps through winget, but it requires me to manually download the app installer every time through the GUI.

It is possible or am I stuck using the GUI?

7

1 Answer

You may install winget using PowerShell with the following commands:

Invoke-WebRequest -Uri "" -OutFile "C:\PS\WinGet.msixbundle"
Add-AppxPackage "C:\PS\WinGet.msixbundle"

(You may modify the path of C:\PS as required.)

The version v1.1.12653 is the latest version at the moment. The current latest and other versions can be found at theReleases folder.

Note: The program is supposed to be installed as part of the Windows 10 21H1 version, so should already exist on your computer(s).

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like