

Please note that when running winget without administrator permissions, a UAC elevation prompt may appear when installing some programs. Winget install microsoft.visualstudiocode -location "D:\Programs" You can change the installation folder for a program: Winget install sysinternals -accept-package-agreementsīy default, programs are installed on the system drive in the Program Files folders.

For example, when installing the Sysinternals toolkit: When you install some software, you can automatically accept the terms of use. Winget install "VLC media player" -silent

If you want to run the package installation in the background, use the –silent option: Winget install Microsoft.WindowsTerminal –e winget install Microsoft.VisualStudioCode –e Then let’s install Windows Terminal and VSCode for PowerShell scripts. The program has appeared in the list of installed software in the Windows Start menu. You can install a specific version of a package:Īs you can see, the package manager has automatically downloaded and installed the app using a single command. The latest available version of the program is installed by default. Copy its name or ID and run the following installation command: In order to display a list of available package versions, run:įor example, you want to install 7zip. Multiple versions of a package can be hosted in the repository. You can get information about a specific package: It lists the repository where the package is located. The command returns the list of packages (with their names and versions) matching your query. If you want to search for the program only in the Microsoft Store repository, run:
