The one stop for setting up my Windows 11 machine cuz Ninite is overrated and everyone loves a one click install amirite.
You need winget for the installation scripts to be recognized by your PowerShell terminal.
You can download it from the Microsoft Store.
Check out with the PowerShell command Get-ExecutionPolicy
if you can execute PowerShell scripts.
Warning
Always use caution when running your command prompt as an administrator, and only install applications you trust.
Tip
You may launch the script with elevated permissions if you don't want to accept elevation prompts. If you don't, make sure you check your taskbar, as the prompt will remain in it waiting for your attention.
You can either execute this script by:
Note
If this is your first time using winget
you, for the script to work, need to accept its terms of service.
You can do so by executing any command before executing this PowerShell script, like winget list
.
- A PowerShell terminal, navigating to the script folder with
cd \route\to\script\
, executingSet-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process
to allow the execution of the install script until you close the terminal - Right clicking the file and selecting
Execute with Powershell
if you have lighter restrictions on script execution (as administrator in a PowerShell terminal, executeSet-ExecutionPolicy Unrestricted
).
You can take note of what apps you have installed that are available to be installed with winget using winget list
.
This tool is a PowerShell script that creates another script by parsing your winget list
output and creating a new script file with all the packages available to be installed with winget
and executable as it is.
Important
The generated file might have some incorrect lines (regex amirite) so do be careful and check the generated script before executing it.
If you want to make scripts like this, you can try winstall, winget.run or use winget search
in your PowerShell terminal of choice to look for the packages you want and write your own script.
Not everything is available in winget
though, you may ask the developer of the app you want to publish it in the Windows Package Manager Community Repository.