UnattendedWinstall leverages Microsoft's Answer Files (or Unattend files) to automate and customize Windows installations. It allows uninstallation of Windows Apps and Features and changes to Windows Settings during the Windows setup process.
- 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 unsatisfied or interested in customizing further, consider creating your own answer file using:
- Winhance Unattend Generator following this video guide.
- Schneegans Unattend Generator 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 23H2, 24H2 and 25H2)
- (32-bit, 64-bit and arm64 is supported)
The UnattendedWinstall answer file comes 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.
- Ability to choose Windows Edition (Unless Windows setup detects key in UEFI BIOS)
- Bypasses Windows 11 system requirements
- Skips forced Microsoft account creation during Windows setup
- Removes all preinstalled bloatware apps except Notepad, Calculator, Paint and Snipping Tool.
- Copilot, OneDrive and Edge are removed along with all other UWP apps.
- Recall is disabled.
- Applies the following Optimizations:
- Privacy & Security (Disables telemetry and ads)
- Power Settings (Imports and applies the Winhance Power Plan for better performance)
- Gaming & Performance (Applies settings and visual effects to improve performance, sets unneeded services to manual, disables unneeded scheduled tasks)
- Windows Updates (Disables auto updates and configures Windows Update to notify of available security updates only)
- Notifications (Disables all notifications except if related to privacy and security)
- Sound (Disables startup sound during boot, sets audio ducking preference to 'Do Nothing')
- Applies the following Customizations:
- Windows Theme (Sets Dark Mode by default, disables transparency effects)
- Taskbar (Hides search, task view and widget icons, aligns to the left on Windows 11)
- Start Menu (Unpins all items from start menu, Disables Bing search results in start)
- Explorer (Applies Classic Context Menu, opens File Explorer to this PC, shows file extensions, hides Home and Gallery folders in Navigation Pane and much more)
Tip
Use Winhance once Windows is installed (can be installed using the 'Install Winhance' desktop shortcut) to install software, re-apply or revert settings and manage your Windows apps and settings.
It can also be used to achieve the same experience UnattendedWinstall provides on an existing Windows installation without reinstalling Windows, see this video for more info.
To use an answer file, include autounattend.xml at the root of your Windows Installation Media to be executed during Windows setup.
Important
Ensure the answer file is named autounattend.xml; otherwise, it won’t be recognized by the installer.
To use WIMUtil, follow these steps:
-
Download and install Winhance from Winhance.net or GitHub.
-
Launch Winhance, click on the "Advanced Tools" navigation button (bottom left) and select WIMUtil.
Once launched, WIMUtil guides you through a wizard:
- Select or Download Windows ISO
- Add Latest UnattendedWinstall Answer File Automatically, create one with Winhance or select your own file
- Extract and Add Current Device Drivers to Installation Media
- Create New ISO with Customizations Included
Once the ISO file is created:
- Create a Bootable USB Flash Drive with Ventoy
- Copy the New ISO File to the Ventoy Flash Drive
- Boot from the USB flash drive, choose your ISO & Install Windows
For more info, check out the full video guide.
Click to Show Instructions
-
Download the
autounattend.xmlfile 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.xmlfile that might overwrite settings in the UnattendedWinstall file.
-
Copy the
autounattend.xmlfile 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.xmlfile 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.xmlfile you downloaded in Step 1, or just click and drag theautounattend.xmlinto 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.xmlfile 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.xmlfile 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:
ISOandTemplates.
They should be at the root of the drive. - Inside of the
ISOfolder, create a new folder calledWindows. - Copy your Windows ISO files in the
ISO\Windowsfolder. - Copy your
autounattend.xmlinto theTemplatesfolder.
- 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.exefile. - A new browser window should open up with a Ventoy web interface ready to go.
- Select the
Auto Install Pluginmenu from the list. - Click on the
Addbutton. - Select [parent] to make the whole Windows ISO folder benefit from the plugin.
- In the Directory Path, paste in the absolute path to your
Windowsfolder.
example:F:\ISO\Windows(ReplaceFwith your drive letter.) - In the Template Path, paste in the absolute path to your
autounattend.xmlfile.
example:F:\Templates\autounattend.xml(ReplaceFwith your drive letter.)
(PSA: If you have moreautounattend.xmlfiles, you can add them later on!) - Click on
OKand 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.xmlfile. - Select that option and the
autounattend.xmlwill be automatically executed during installation.
- After selecting a Windows ISO to boot from, you will be prompted to boot with the
- Use Winhance, it contains the same settings as UnattendedWinstall. You can watch the full Video Guide for more info.
- No, in-place upgrades do not support answer files.
- Feature updates are delayed for a year; however, security and driver updates continue as usual. If you want to completely disable updates, use Winhance. You can watch the full Video Guide for more info.
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.
[!TIP]
You can use WIMUtil in Winhance to extract and add the drivers from your current operating system to the Windows installation media. These drivers should then be installed automatically during the Windows installation process, preventing any internet connection issues.
- You still have access to the previous files here:
Note
For v1.0.0 you need to download the Source Code.zip file. Once extracted, you’ll have access to all the previous v1.0.0 files.
- You still have access to the file here, under 'Assets' at the bottom of the page:
Click to Show Instructions
You can add your own registry entries or PowerShell code to v3.x.x of the XML file. Here's a brief explanation.
For registry entries or PowerShell Code that can be applied system wide (HKEY_LOCAL_MACHINE or HKEY_CLASSES_ROOT), find this section of the file:
# ADD YOUR SYSTEM WIDE POWERSHELL SCRIPT CONTENTS BELOW
# Start here
# End here
Add the code between the # Start here and # End here lines.
For registry entries or PowerShell Code that should be applied to the user profile (HKEY_CURRENT_USER), find this section of the file:
# ADD YOUR USER SPECIFIC POWERSHELL SCRIPT CONTENTS BELOW
# Start here
# End here
Add the code between the # Start here and # End here lines.
[!IMPORTANT]
The code that is added to the file must be valid PowerShell code, or else the script will fail and no changes will be made to Windows.