
Summary
You can install Windows 11 without choosing a keyboard layout, picking a drive, or even creating an account. An answer file named Autounattend.xml provides Windows Setup with those parameters in advance. Once you’ve booted the installer, you can just walk away. Windows will show its progress, but doesn’t require you to click through all those setup screens. The same file can also handle the settings and tweaks you’d usually make post-installation. Removing bloatware, customizing File Explorer, and hiding the taskbar search can all be set before you ever see the desktop. Give Windows the answers before it boots All the choices that usually interrupt a clean install Start with your Windows 11 installation media and open up the Schneegans answer-file generator. The form is a handy way to turn your selections into the Autounattend.xml file used with the Windows installer ISO you already have without having to write the XML yourself. Under Region and language settings, choose the display language that matches the ISO you downloaded from the Microsoft website. Regional formats and keyboard layouts can be set separately. For example, an English-language ISO paired with US English means Windows will be installed with US date and number formats, while selecting US keeps the keyboard layout familiar too. Under the Windows PE stage, choose Generate a .cmd script to handle the Windows PE stage. Here, select the edition your Windows 11 product key covers from the Windows image to install dropdown. In my example, I used Pro because that’s the version that my product key is licensed for. At this stage, leave both pause options unchecked. This is so the installer can partition the disk and reboot on its own without your interaction. Under the Windows PE stage, find Partitioning and formatting. Create a backup of anything you want to keep on the target machine before enabling automatic partitioning, as this script will erase the drive it selects. These are the important settings that need changing before exporting the XML file:
- Partitioning and formatting: Select Let Windows Setup wipe, partition, and format your hard drive using these settings.
- Select target disk: Choose Select the target disk based on these criteria. Just selecting no existing partitions is typically fine.
- Choose partition layout: Select GPT for a UEFI system, or select MBR for legacy BIOS.
- WLAN/Wi-Fi setup: If your target PC has Ethernet and it’s plugged in, choose Skip Wi-Fi configuration. If you do require a Wi-Fi connection, choose Configure Wi-Fi using these settings and enter your network name and password.
- Express settings: Choose Enable all or Disable all according to your privacy preferences. If you leave this set to Choose settings interactively, the installation will stop until you answer manually.
For the test virtual machine I used for the installation, the target disk had to have no existing partitions and use a SATA, SCSI, SAS, or NVMe controller. Only the blank 64 GB virtual NVMe disk qualified, so this disk received the Windows 11 installation.
Finally, give the PC a name and tell Setup to create a local account. At least one account needs to be in the Administrators group. Under First Logon, select the first administrator account so Windows signs in automatically at the end of the unattended installation.
A browser-based tool that creates answer files for unattended Windows 10 and 11 installations. You can choose the edition, set up local accounts, and customize the desktop before you boot the installer. - Platform(s)
- Windows 10, Windows 11
- Price model
- Free
Choose what’s waiting on the desktop
From filename extensions to virtual machine drivers
Under File Explorer tweaks, you can pre-configure some of the more time-consuming components of a manual Windows installation. In my test, I selected Show all files, enabled Always show file extensions, and set Explorer to open This PC rather than Quick access.
Under the Start menu and taskbar, I also chose Hide for the search box. Once the installation was finished, these preferences were already in place once Windows had signed me in.
You can also go a bit further depending on what you’re actually setting up. A family laptop and a Proxmox VM aren’t likely to need the same extras.
|
Generator section |
What you can choose |
|
Remove bloatware |
Pick individual bundled apps to remove, such as Teams, Copilot, and Cortana. |
|
Personalization settings, Desktop icons, and Visual effects |
Set your wallpaper and colors, put This PC on the desktop, or turn off window animations. |
|
Folders on Start and Lock key settings |
Put Downloads beside the Start menu’s power button or have Num Lock enabled at sign-in. |
|
WLAN/Wi-Fi setup |
Import existing Wi-Fi profiles, or enter your Wi-Fi network’s SSID and password. |
|
VM guests |
Install VMware Tools for Workstation, or VirtIO drivers and the QUME Guest Agent for Proxmox. This requires mounting the driver ISO alongside your installation media. |
Boot Windows with the answer file in place
Two virtual discs or one USB installer
Once you’ve finished with the Schneegans generator, there are two routes to export the XML and attach it to your Windows installation. Both are dependent on whether your target PC is a physical or virtual machine.
For a physical PC, start with your bootable Windows 11 installer USB. At the bottom of the Schneegans generator webpage, click Download .xml file and copy Autounattend.xml
to the root directory of the USB stick. If you can see setup.exe
and Autounattend.xml
in the same directory, you’ve put it in the right place.
When you boot the PC from that USB drive, Windows Setup will automatically find the file.
For my VMware Workstation test, I chose Download .xml wrapped in .iso file instead. That gave me a second disc image called unattend.iso
. When creating the VM, choose I will install the operating system later so VMware’s Easy Install doesn’t attempt to supply its own answers.
With the VM powered off, open up hardware settings, attach the Windows 11 ISO to the existing CD/DVD drive, then add a new CD/DVD drive, and attach unattend.iso
. Lastly, make sure that Connect at power on is enabled on both.
Regardless of the installation target, you will have to press one key at the prompt to boot from either the USB drive or the ISO. However, that’s the first and only time you’ll need to touch the PC.
During the installation, a command window will show the script partitioning the disk and applying the Windows image. When the progress bar reaches 100%, the installer copies the answer file to the target disk.
For me, installation was completed within four minutes, and Windows began checking for updates. Around the eight-minute mark, it signed me in automatically. A PowerShell window then ran for roughly 30 seconds, bringing the total from boot to a usable desktop to eight minutes and 36 seconds.
To check on your own installation, run this command in PowerShell to confirm the installation date:
systeminfo | findstr /i “Original Install Date”
If you accidentally trigger the unattended installation again with the blank-disk rule enabled, the script will stop before overwriting the new installation.
Keep the answer file for your next install
Your usual settings, ready to use again
For a one-off reinstall, you’ll still spend a few minutes choosing a keyboard layout, naming the PC, and deciding on tweaks and settings for the desktop. The advantage is that you’ll only ever need to do this once.
Once the installer boots, you can just leave it to finish without needing to come back to find what’s waiting for you to click Next.
Retaining the XML file means the next time you need a clean install, your preferences are ready to go. However, before using the file on another PC, it’s best to choose the option Let Windows generate a random computer name.
That will allow you to reuse the XML file again and again without needing to choose a new hostname every time. You may also edit the existing XML directly and change the computer name. In my test, my XML file contained:
MUO-UNATTENDED I could simply change this to:* That randomizes the computer name on the next run. If you want to retain a prefix for the computer name (for example, MUO-xxxx), choose the PowerShell option under Computer name and enter this line: return ‘{0:D6}’ -f (Get-Random -Minimum 0 -Maximum 1000000) In my case, this produced a computer name with a randomized number next to the prefix, for example: MUO-004821 . My test VM took eight minutes and 36 seconds to reach a completely usable and updated desktop. I could’ve spent that time making coffee and still come back to File Explorer set up just the way I like it.