In this repository, a basic template for an unattended setup of Windows10/11 is given. The repository consists of various tools supporting the installation of Windows10/11, with little user interaction.
- Create a bootable USB disc using Ventoy
- Copy all files in the repository on the USB (using the same folder structure)
- Download a Windows installation ISO and put it in the ISO folder (tested with Win11_German_x64v1.iso)
- Adapt the scripts if necessary
- The xml configurations under ventoy\config\ call the CreateSetup.cmd script in the SetupComplete folder.
- CreateSetup.cmd does the following
- Create a temporary folder on the system drive
- Copy all files from the SetupComplete folder to the temporary folder
- Checks for internet access and supports to connect to wifi (just a beta script)
- Download snappy driver installer (so to allow to download and install Windows drivers)
- Download Office Tool to allow the unattended installation of Office
- Download and install chocolatey for further unattended installations
- After the automatic system reboot, the SetupComplete.cmd is executed, which installs:
- Office 2021 using Office Tool
- Execute Ninite.exe tool with valuable tools such as Chrome
- Install adobereader and lockhunter (note: an error occurs with lockhunter caused by the impossibility to open the browser at this stage of windows) using chocolatey
- The setup files are finally removed from the system
There are some things you can do to extend the approach
Change the xml file to change things. TODO not described yet.
Do it accordingly to the Office Tools sample in CreateSetup and further execute it using SetupComplete
See the example of Ninite.exe in SetupComplete.cmd. You can also put the files under another dir, but you have to specify it.
- Optimize the structure so that it is more maintainable.
- Extract the download function of CreateSetup so that it can be called in a function.
- Improvement of the alpha version of the Wifi tool which is required and IMHO very helpful.
- Allow to install softwares and downloads in parallel to improve performace.
- Add a script that downloads all the files to the USB, allowing to install without the necessity to download everything all the time.
- Many others....
Please feel free to fork this repo and send a pull request if you want to contribute to this project.
Notice that this project is in a beta version. Not all features are tested well, which might lead to bugs.
Special thanks to the developer of ventoy and the support of easy2boot, which inspired me of that solution!
This template with scripts is for personal purpose and I strongly encourage to only use alignet with your countries law.