UnattendedWinstall leverages Microsoft's Answer Files (or Unattend files) to automate and customize Windows installations. It enables modifications to Windows Settings and Packages directly in the Windows ISO during setup.
- Provides transparency by allowing inspection of all changes in the answer file.
- Runs directly on official Windows ISOs from Microsoft, eliminating the need for unofficial sources.
- Utilizes a Microsoft-supported feature designed for streamlined mass deployment of Windows installations.
- Enables automated configuration across multiple devices, saving time and effort by eliminating repetitive manual setups.
Note
UnattendedWinstall has been tested and optimized for personal use. For those interested in customizing further, create your own answer file following this video guide.
If UnattendedWinstall has been useful to you, consider supporting the project, it really does help!
If you have feedback, suggestions, or need help with UnattendedWinstall, please feel free to join the discussion on GitHub or our Discord community:
- Windows 10 or Windows 11
- (Tested on Windows 10 22H2 & Windows 11 24H2)
- (32-bit, 64-bit and arm64 is supported)
The UnattendedWinstall answer file come with detailed descriptions for nearly all configurations and registry tweaks, which are available for inspection here on GitHub. For customization, download the answer file and open it in editors like Cursor or VSCode.
Click to Show
- Base Answer File Generation:
- Tweaks & Optimizations:
- Additional Tweaks:
- Windows 10/11 Pro is installed by default
- Bypasses Windows 11 system requirements
- Disables Windows Defender services by default
- prompted to enable after Windows installation
- Disables User Account Control by default
- prompted to enable after Windows installation
- Allows execution of PowerShell scripts by default
- Skips forced Microsoft account creation during Windows setup
- Removes preinstalled bloatware apps except Microsoft Edge, Notepad and Calculator
- Copilot and Recall is Disabled.
- Sets privacy-related registry keys to disable telemetry
- Limits Windows Update to install only security updates for one year
- Optimizes registry with various optimization and customization-related keys
- See the "Set-RecommendedHKLMRegistry" and "Set-RecommendedHKCURegistry" functions for more information
- Disables unnecessary scheduled tasks
- Configures Windows services for optimal performance
- Enables the Ultimate Performance power plan
Note
Use the UWScript.ps1
file once Windows is installed to reapply or revert settings in case Windows Update resets some of the settings or if you encounter any issues.
It can also be used to achieve a similar experience to UnattendedWinstall on an existing Windows installation without reinstalling Windows.
Before Running the Script
Ensure you open PowerShell as an administrator. Additionally, set the execution policy to allow script execution by running the following command:
Set-ExecutionPolicy RemoteSigned
Running PowerShell with elevated permissions and enabling script execution will ensure that UWScript.ps1
can apply the necessary system changes.
To use an answer file, include autounattend.xml
at the root of your Windows Installation Media to be executed during Windows setup.
Note
Ensure the answer file is named autounattend.xml
; otherwise, it won’t be recognized by the installer.
Note
You can back up your drivers prior to installation to ensure they’re readily available:
Click to Show Instructions
-
Create a folder named
Drivers
on your C: drive. -
Backup your current Windows drivers to the
C:
drive by running the following command in Command Prompt as Administrator:dism /online /export-driver /destination:C:\Drivers
-
Plug your USB drive/installation media into your computer.
-
Create a folder named
$WinpeDriver$
on your USB drive. -
Copy the drivers you want to install automatically from
C:\Drivers
toD:\$WinpeDriver$
assumingD:
is your USB drive.
Click to Show Instructions
-
Download the
autounattend.xml
file and save it on your computer. -
Create a Windows 10 or Windows 11 Bootable Installation USB drive with Rufus or the Media Creation Tool.
Important
- Some users have reported issues with the Media Creation Tool when creating the Windows Installation USB. Use it at your own discretion.
- When using Rufus, don’t select any of the checkboxes in “Customize Your Windows Experience,” as it creates another
autounattend.xml
file that might overwrite settings in the UnattendedWinstall file.
-
Copy the
autounattend.xml
file you downloaded in Step 1 to the root of the Bootable Windows Installation USB you created in Step 2. -
Boot from the Windows Installation USB, do a clean install of Windows as normal, and the scripts will run automatically.
Click to Show Instructions
- Download the
autounattend.xml
file and save it on your computer. - Download the Windows 10 or Windows 11 ISO file depending on the version you want.
- Download and install AnyBurn
- In AnyBurn, select the “Edit Image File” option.
- Navigate to and select the Official Windows ISO file you downloaded in Step 2.
- Click on “Add” and select the
autounattend.xml
file you downloaded in Step 1, or just click and drag theautounattend.xml
into the AnyBurn window. - Click on “Next,” then on “Create Now.” You should be prompted to overwrite the ISO file; click on “Yes.”
- Once the process is complete, close AnyBurn.
- Use the ISO file to install Windows on a Virtual Machine OR use a program like Rufus or Ventoy to create a bootable USB flash drive with the edited Windows ISO file.
Important
- When using Rufus, don’t select any of the checkboxes in “Customize Your Windows Experience,” as it creates another
autounattend.xml
file that might overwrite settings in the UnattendedWinstall file.
- Boot from the Windows Installation USB, do a clean install of Windows as normal, and the scripts will run automatically.
Click to Show Instructions
- Download the
autounattend.xml
file and save it on your computer. - Download the Windows 10 or Windows 11 ISO file, depending on the version you want.
- Download and install Ventoy to your desired USB flash drive.
- Prepare the folder structure:
- In your newly created Ventoy USB disk, create the following folders:
ISO
andTemplates
.
They should be at the root of the drive. - Inside of the
ISO
folder, create a new folder calledWindows
. - Copy your Windows ISO files in the
ISO\Windows
folder. - Copy your
autounattend.xml
into theTemplates
folder.
- In your newly created Ventoy USB disk, create the following folders:
- Start VentoyPlugson. Depending on your OS, the steps might differ.
- On Windows, run the
VentoyPlugson.exe
file. - A new browser window should open up with a Ventoy web interface ready to go.
- Select the
Auto Install Plugin
menu from the list. - Click on the
Add
button. - Select [parent] to make the whole Windows ISO folder benefit from the plugin.
- In the Directory Path, paste in the absolute path to your
Windows
folder.
example:F:\ISO\Windows
(ReplaceF
with your drive letter.) - In the Template Path, paste in the absolute path to your
autounattend.xml
file.
example:F:\Templates\autounattend.xml
(ReplaceF
with your drive letter.)
(PSA: If you have moreautounattend.xml
files, you can add them later on!) - Click on
OK
and you should see a message saying that the configuration has been saved successfully. - Close the VentoyPlugson browser window and stop the VentoyPlugson application.
- On Windows, run the
- Boot from the Ventoy USB drive in the computer where you want to install windows.
- After selecting a Windows ISO to boot from, you will be prompted to boot with the
/Templates/autounattend.xml
file. - Select that option and the
autounattend.xml
will be automatically executed during installation.
- After selecting a Windows ISO to boot from, you will be prompted to boot with the
- Run the
UWScript.ps1
file or use the Chris Titus Tech Windows Utility (Video).
- No, in-place upgrades do not support answer files.
- Feature updates are delayed for a year; however, security and driver updates continue as usual.
Click to Show Instructions
If you’re unable to connect to the internet after installation, it’s likely because your Wi-Fi or LAN (Ethernet) drivers are missing. Windows sometimes doesn’t include all necessary drivers for network adapters, especially if they’re specific to your device.
To resolve this, follow these steps:
- Download your network driver from the manufacturer’s website on another computer with internet access. Look for Wi-Fi or LAN drivers specific to your device model.
- Transfer the driver to your Windows installation via USB drive.
- Install the driver on your Windows system and restart if necessary.
After installation, you should be able to connect to the internet.