|

How to Create an Unattended Answer File for Windows 10 and 11

How to Create YOUR OWN Unattended Windows Installation!

To create your own unattended answer file for Windows 10 or 11, use the Schneegans Unattend Generator — a free online tool that lets you configure language, user accounts, privacy settings, bloatware removal, and custom scripts, then downloads a ready-to-use autounattend.xml file. Place this file in the root of your bootable USB drive and Windows will apply all your settings automatically during installation.

Applies to: Windows 10 (22H2) and Windows 11 (23H2, 24H2, 25H2) | Last updated: April 6, 2026

How to Create YOUR OWN Unattended Windows Installation!

Key Takeaways

  • The Schneegans Unattend Generator is a free web tool that builds a complete autounattend.xml file for Windows 10 and 11 — no coding required.
  • You can automate nearly every step of Windows setup: language/region, disk partitioning, user account creation, privacy settings, bloatware removal, and custom scripts.
  • If you do not want to build your own file from scratch, download one of my pre-made UnattendedWinstall answer files from GitHub — they are ready to use and include optimizations I have tested extensively.
  • The generated XML file goes in the root of your bootable USB drive. Windows detects it automatically during installation and applies all your settings without any manual input.
  • Always use original Windows ISO files from Microsoft — never use custom or modified ISOs, as they are a security risk. Download the official ISO from the Windows 11 ISO guide or Windows 10 ISO guide.

In This Guide

This guide covers two ways to create an unattended answer file:

Quick Steps

  1. Go to the Schneegans Unattend Generator.
  2. Set your language, region, keyboard layout, and time zone.
  3. Choose your CPU architecture (most users: Intel/AMD 64-bit).
  4. Configure disk partitioning (interactive or automated), Windows edition, and user accounts.
  5. Enable optimizations: disable app suggestions, disable BitLocker auto-encryption, enable classic right-click menu, remove bloatware.
  6. Optionally add custom CMD, PowerShell, or registry scripts.
  7. Click Download to save the autounattend.xml file.
  8. Copy the XML file to the root of your bootable USB drive and install Windows.

What Is an Unattended Answer File?

An unattended answer file (also called autounattend.xml) is a configuration file that tells Windows Setup exactly how to install itself. Instead of clicking through language selection, disk partitioning, account creation, and privacy screens manually, the answer file pre-defines all of these settings so Windows installs itself without any user input.

This is useful whether you are setting up a single PC and want a clean, optimized installation, or deploying Windows across dozens of machines with identical configurations. I built my UnattendedWinstall project around this concept — pre-made answer files that remove bloatware, disable telemetry, and optimize Windows right from the start.

Tip: If you do not want to create your own answer file from scratch, download one of my pre-made UnattendedWinstall answer files from GitHub. They are ready to use and include all the optimizations I cover in this guide. The full UnattendedWinstall guide walks you through using them.

How to Use the Schneegans Unattend Generator

The Schneegans Unattend Generator is a free web-based tool that walks you through every configurable setting and generates the XML file for you. You can find it by searching “Schneegans unattended generator” or by clicking the link on my UnattendedWinstall GitHub page.

Below is a breakdown of every major section in the generator and what I recommend setting for each one.

Language, Region, and Keyboard

Set your default language, date/time format, and keyboard layout. If you plan to use the same answer file across different countries, select “Select your language settings interactively during Windows setup” instead — this leaves the language screen for the user to choose manually.

CPU Architecture

Most users should select Intel or AMD 64-bit. If you want a single answer file that works on any hardware, hold Ctrl and select all architectures — the generator creates one XML file that covers all of them.

Setup Settings (Windows 11 Bypass)

Two important checkboxes here. “Bypass Windows 11 requirements” lets you install Windows 11 on unsupported hardware that does not meet Microsoft’s TPM 2.0 or CPU requirements. “Allow Windows 11 to be installed without an internet connection” skips the mandatory online account screen during setup, which makes the installation process much smoother.

Schneegans Unattend Generator website showing the language, region, and CPU architecture configuration options

Computer Name and Time Zone

You can let Windows generate a random computer name (best if you are deploying to multiple machines) or set a specific name. For the time zone, the default option lets Windows determine it based on your language and region settings, which works well for most people.

Disk Partitioning

For most users, I recommend “Partition your disk interactively during Windows setup” — this lets you pick the drive manually during installation, which prevents accidentally wiping the wrong disk. If you have a single drive and want full automation, the generator can auto-partition with GPT or MBR layout. You can even provide a custom diskpart script for advanced configurations.

Windows Edition

Select the edition you want to install (Home, Pro, etc.). The generator uses a generic product key to pre-select the edition — this is not an activation key, just a selection key. You can enter your own product key later to activate Windows. If you run into issues where the edition selection screen still appears during installation, check out my answer file edition selection fix.

User Accounts

You can create up to five local accounts and assign each to the Administrators or Users group. Set a password or leave it blank. I typically create a single admin account without a password for my personal machines.

For the first logon option, choose “Log on with the first administrator account created above” to skip the sign-in screen entirely after installation. The other options let you activate the built-in Administrator account or stop at the sign-in screen.

How to Configure Optimizations and Tweaks

This is where the Schneegans generator really shines. You can apply a wide range of Windows optimizations right from the first boot, without installing any third-party tools.

Schneegans Unattend Generator showing the optimizations section with options for Windows Defender, long file paths, app suggestions, and BitLocker

Here are the settings I recommend enabling:

  • Disable app suggestions — prevents Windows from silently downloading and installing suggested apps (this is the bloatware that keeps reappearing after a clean install)
  • Prevent automatic BitLocker encryption — stops Windows 11 from encrypting your drive by default, which can cause problems if you ever need to recover data
  • Use the classic right-click context menu — restores the full context menu in Windows 11 instead of the simplified one
  • Enable long file paths — removes the 260-character path length limit, which is useful for development and deeply nested folders
  • Allow execution of PowerShell scripts — lets you run unsigned PowerShell scripts (only enable this if you know what you are doing)
  • Disable widgets — removes the Bing news and weather widget from the taskbar

Note: I do not recommend disabling Windows Defender through the answer file unless you have a specific reason to. Leaving Defender enabled keeps your system protected from the moment Windows boots for the first time.

How to Remove Bloatware During Installation

The Schneegans generator includes a bloatware removal section where you can choose exactly which pre-installed Windows apps to keep and which to remove. Click “Select all” to mark everything for removal, then deselect the apps you actually want.

The apps I typically keep are: Calculator, Notepad, Paint, Snipping Tool, and Terminal. Everything else — Clipchamp, Cortana, Get Help, Microsoft News, Solitaire, Tips, Xbox Game Bar, and dozens of other apps — gets removed automatically during installation.

When apps are removed through the answer file, their Start menu shortcuts and pinned tiles are also cleaned up. The bloatware removal works best with original Windows ISO files from Microsoft. If you want even more control over bloatware after installation, Winhance lets you remove additional apps and apply further optimizations with a GUI.

How to Add Custom Scripts to Your Answer File

The Schneegans generator lets you include custom scripts that run at different stages of the installation. This is the most powerful feature of unattended answer files — you can apply registry tweaks, disable telemetry, enable dark mode, and more without touching the PC after Windows installs.

There are two main script locations:

  • System context (before user accounts are created) — these scripts apply to the entire machine using HKLM registry keys. Use this for settings that affect all users, like disabling activity history or telemetry.
  • First user logon — these scripts run once each time a new user logs in for the first time. Use this for user-specific settings like enabling dark mode, taskbar layout, or removing remaining bloatware.
Schneegans Unattend Generator showing the custom scripts section with CMD, PowerShell, registry, and VBS script input fields

You can write CMD, PowerShell, registry (.reg), or VBS scripts. If you want a starting point, my UnattendedWinstall repository includes both a localmachine.cmd and a currentuser.cmd file with tested registry tweaks — you can copy the entries you want directly into the Schneegans script fields.

Tip: From my experience building UnattendedWinstall, some registry entries applied to the “default user’s registry hive” section do not always take effect when a new user is created. I recommend putting user-specific scripts in the “first user logon” section instead — it is more reliable.

Generate an Answer File With Winhance

Winhance — the Windows Enhancement Utility I built — can also generate an autounattend.xml file based on the settings you have selected in the app. Configure your bloatware removal, privacy toggles, optimizations, and customizations in Winhance, then use the built-in Autounattend XML Generator to export everything as an answer file.

The advantage of the Winhance approach is that you get a visual GUI with descriptions for every setting, instead of manually editing XML or navigating a web form. Whatever you toggle in Winhance gets baked into the answer file automatically. Winhance also includes WIMUtil — a tool that takes your answer file, combines it with an official Windows ISO, injects your system drivers, and outputs a ready-to-use custom ISO. When you install Windows from that ISO, you arrive at a fully configured desktop with no post-install work.

Winhance — Create Custom Windows Installation Media

How to Use the Answer File on Your USB Drive

Once you have configured everything, click Download to save the autounattend.xml file. The Schneegans generator also offers an ISO download option that wraps the XML file inside a small ISO image — this is useful if you want to mount it as a virtual drive in a VM instead of using a USB stick. For most people, the plain XML download is all you need. Copy this file to the root directory of your bootable USB drive — the same level as the setup.exe file, not inside any folder.

When you boot from the USB drive, Windows Setup automatically detects the autounattend.xml file and applies all your settings. Depending on what you configured, you may see the disk selection screen (if you chose interactive partitioning) but everything else — user accounts, privacy settings, bloatware removal, and scripts — runs without any input.

For a complete walkthrough of creating a bootable USB and installing Windows with an answer file, see my UnattendedWinstall guide. If you want to go further and build a custom ISO with pre-installed programs, check out the custom Windows ISO guide or the custom gaming Windows 10 ISO guide.


Frequently Asked Questions

Does the same answer file work for both Windows 10 and Windows 11?

Yes. The Schneegans Unattend Generator creates a single autounattend.xml file that is compatible with both Windows 10 and Windows 11. If you select multiple CPU architectures, the file also works across different hardware configurations.

Is it safe to bypass Windows 11 system requirements in the answer file?

Bypassing the TPM and CPU requirements lets you install Windows 11 on older hardware, and in practice it works fine for most users. However, Microsoft does not officially support this configuration, so you may not receive certain future updates. I have a full guide on upgrading unsupported hardware to Windows 11 that covers the risks and alternatives.

Where exactly do I put the autounattend.xml file?

Place it in the root directory of your bootable USB drive — the same folder where you see setup.exe, the sources folder, and other Windows installation files. Do not put it inside a subfolder. Windows Setup scans the root of all attached drives for this file automatically.

Can I edit the XML file after downloading it?

Yes. The autounattend.xml file is plain text — you can open it in any text editor (Notepad, VS Code, Cursor) and modify settings directly. This is useful if you want to add a product key, tweak a registry entry, or adjust a setting you missed in the generator.

What if the Windows edition selection screen still appears during installation?

This can happen when the answer file’s edition key does not match the editions available on your ISO. I have a dedicated guide on fixing the edition selection issue in answer files that covers the exact fix.

Similar Posts

6 Comments

  1. Hi
    I wanted to let you know that I installed Win11 with the autounattend.xml file I created custom.
    I installed Windows To Go with Rufus and noticed that, despite not checking any Rufus boxes to prevent my script from being canceled, it didn’t do almost anything I asked it to do, including setting a local account, moving the taskbar to the left, and deleting certain things.
    Could this be because I enabled the option to make PowerShell scripts invisible?
    Aside from that, thank you very much for all the information you’ve provided.

  2. Although my previous post hasn’t been published, for some reason, I’m posting another comment related to what I wrote the other time.
    For autounattended to work in Rufus with Windows To Go, you need to do two things once the ISO has been burned to the external hard drive:
    1. Rename autounattended.xml to unattended.xml
    2. Copy that file to the newly created directory on the hard drive called
    /Windows/Panther/
    This way, the selected options will be executed.
    Logically, as you rightly say, you don’t need to select any options in Rufus, although with this system, it doesn’t matter, since you rewrite any file written by Rufus to your own.

  3. When importing your pre-made file (downloaded from your github) into schneegans, it gives the error message: “You uploaded a file that was not generated by this service.”

    1. Yes, you can’t edit the file I created in schneegans. The base of the file I got from schneegans, but I added a lot of custom scripts that schneegans’ service does not support, that’s why you get that error.

Comments are closed.