Windows released a new command line tool in 2021 for installing software called winget
. My verdict is: wow, it's really good!
Using this PowerShell script, within about 10 minutes it had installed over 30 applications with no interaction needed from me.
Here's a quick tutorial on using winget
.
- Winget comes pre-installed on new computers, but if you don't have it, just install the App Installer from the Microsoft Store.
winget list
shows all applications you currently have installed and labels which ones are available through winget. This is a good way to prepare your own setup script, especially if you're planning to get a new computer.winget search <name of app>
to find out if an app you want can be installed through winget.winget install
andwinget uninstall
do exactly what you think.
You can install each app separately using those commands. Or if you want to use the script to automate it, here's how to do that:
- Edit the
InstallSoftware.ps1
file to include the apps you want. - Start PowerShell as administrator.
- If running scripts is blocked (it should be), you can temporarily unblock them with
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope Process
. - Run the script and enjoy!
Hi Dougwaldron, Can I define application source path in winget, for example I have a app server in my private network, I want to link the IP with listed software inside the script so that it will install the listed software from my app server. If possible please give me the modify script. Thank you.