Jump to content
  • How to easily create an unattended answer file for Windows 11


    Karlston

    • 3 comments
    • 279 views
    • 7 minutes
     Share


    • 3 comments
    • 279 views
    • 7 minutes

    Do you want to fully automate the Windows 11 installation process? If yes, you can create an answer file, and here's how.

    On Windows 11, you can create an answer (or autounattend.xml) file to install the operating system without going through every step during the setup and Out-of-box Experience (OOBE), and in this guide, I'll show you how.

     

    When you want to perform a clean installation of Windows 11, you typically have to complete the Windows Setup process, which takes care of the installation settings, including language preferences, product key, and partition layout. Also, after the installation, you have to complete the Out-of-box Experience to configure settings like keyboard layout, account, and privacy settings.

     

    Although this process is relatively straightforward, you still have to spend time managing the installation and answering questions. If you want to automate the process, you can create an answer file with instructions to complete every on-screen prompt, which you can integrate onto a bootable media. Then, during the setup, the system can automatically read the answers to install Windows 11.

     

    In this how-to guide, I'll explain the steps to create an answer file to install Windows 11 on your computer.

    Create an answer file for an unattended install of Windows 11

    Creating an answer file to do an unattended installation of Windows 11 isn't complicated. You have to install the DISMTools app, use the easy-to-use wizard to create the unattended file, and finally, integrate the ".xml" file into the Windows 11 bootable media.

     

    It's important to note that you can use different tools to complete this process, but I have found that using the DISMTools offers the simplest experience for creating this file. However, it's a third party, non-Microsoft tool. As such, use it at your own risk.

    Install DISMTools

    To install DISMTools on Windows 11, use these steps:

     
    1. Open Start.
    2. Search for Command Prompt, right-click the top result, and choose the Run as administrator option.
    3. Type the following command to install the tool (preview) and press Enter: winget install CodingWondersSoftware.DISMTools.Preview

     

    DISMTools install with winget command

    (Image credit: Mauro Huculak)

     

    Once you complete the steps, you can use the tool's wizard to create an answer file to do an unattended installation of Windows 11 without tedious steps.

    Create answer file

    To create an unattended file to install the operating system, use these steps:

     

    1. Open Start.
    2. Search for DISMTools and click the top result to open the app.
    3. Click the Next, Next, and Finish buttons to process the initial setup.
    4. Click on Tools and choose the "Unattended answer file creator" option.

     

    DISMTools unattended answer file creator

    (Image credit: Mauro Huculak)

     

    1. Click the Yes button to download the .NET 9 Runtime (if applicable).

     

    DISMTools download .NET 9

    (Image credit: Mauro Huculak)

     

    1. Click the Next button to start the wizard.
    2. Select the "Configure these settings now" option.
    3. Choose the system language, locale, keyboard layout, and location.

     

    Windows 11 regional settings

    (Image credit: Mauro Huculak)

     

    1. Click the Next button.
    2. Choose the "x64" option for processor architecture, since that's the only supported architecture for Windows 11.
    3. (Optional) Check the "Bypass System Requirements" option in the "Windows 11 settings" to create a file to install the operating system on unsupported hardware.
    4. (Optional) Check the "Bypass Network Connection" option in the "Windows 11 settings" to create a local account during the setup.
    5. Check the "Let Windows set a random computer name" option because if you're using the same file on different devices, you will avoid conflicts with the same computer name.

     

    Windows 11 configure basic system settings

    (Image credit: Mauro Huculak)

     

    1. Click the Next button.
    2. Choose the "Set a time zone manually" option.
    3. Select your current time zone.

     

    Set a time zone manually

    (Image credit: Mauro Huculak)

     

    1. Click the Next button.
    2. Clear the "I want to configure these settings during the installation" option to manually configure the EFI and Recovery Partition.
    3. Choose the "Configure settings for disk 0" option and use the default configuration.

     

    Answer file create Windows 11 partitions

    (Image credit: Mauro Huculak)

     

    • Quick note: The default configuration will create a 300MB EFI partition using GPT and a 1GB Recovery Partition.
    1. Click the Next button.
    2. Choose the "Use a generic product key option to skip this" option.
    3. Select the product key for the edition of Windows 11.

     

    Windows 11 answer file product key

    (Image credit: Mauro Huculak)

     

    • Quick note: If you're installing the operating system on a device that previously had Windows 10 or 11, the installation will reactivate automatically. Otherwise, you will have to activate the system after the installation.
    1. Click the Next button.
    2. Clear the "I want to configure these settings during installation" option.
    3. Confirm the local account name and password.

     

    Windows 11 answer file account creation settings

    (Image credit: Mauro Huculak)

     

    • Quick tip: You can always check the "Ask for a Microsoft account interactively" option to configure a Microsoft account during setup. However, to make the experience totally automated, it's best to create a local account and then link it to a Microsoft account after the installation.
    1. Choose the Administrators option from the "Account group" setting.
    2. Click the Next button.
    3. Select the "Passwords should never expire" option.

     

    Passwords should never expire

    (Image credit: Mauro Huculak)

     

    1. Click the Next button.
    2. Check the Disable policy option.

     

    Disable policy

    (Image credit: Mauro Huculak)

     

    1. Click the Next button.
    2. Select the "No, I plan on using the target installation on a real system" option.

     

    Windows 11 answer file for virtual machine

    (Image credit: Mauro Huculak)

     

    • Quick note: If you choose the Yes option, you can select the option to support VMware, VirtualBox, etc.
    1. Click the Next button.
    2. Clear the "I want to configure the settings installation" option.
    3. (Option 1) Select the "Configure settings for wireless network now" option.
    4. Confirm the wireless network settings, including SSID and password.
    5. (Option 2) Select the "Skip configuration" option if the device will connect using the Ethernet connection.

     

    Configure settings for wireless network now

    (Image credit: Mauro Huculak)

     

    1. Click the Next button.
    2. Clear the "I want to configure the settings installation" option.
    3. Select the Disable telemetry option.

     

    Disable telemetry

    (Image credit: Mauro Huculak)

     

    1. Click the Next button.
    2. Click the Next button again to skip the script configuration.
    3. Click the Next button one more time to skip the configuration of additional components.
    4. Click the Next button one last time.
    5. Save the unattended file on your computer as autounattend.xml.
    6. Click the Close button.

     

    After you complete the steps, you will end up with an answer that you have to integrate into the Windows 11 installation media to perform an unattended setup.

    Integrate file to Windows 11

    To integrate the answer to Windows 11 installation media, use these steps:

     

    1. Open the Windows 11 download page.
    2. Click the "Download now" button to save the file on the device under the "Create Windows 11 Installation Media" section.

     

    Media Creation Tool download

    (Image credit: Mauro Huculak)

     

    1. Double-click the MediaCreationTool.exe file to launch the tool.
    2. Click the Accept button to agree to the terms.
    3. (Optional) Clear the "Use the recommended options for this PC" option.

     

    Media Creation Tool language settings

    (Image credit: Mauro Huculak)

     

    1. Select the correct language and edition of Windows 11.
    2. Click the Next button.
    3. Select the "USB flash drive" option.

     

    Create Windows 11 USB option

    (Image credit: Mauro Huculak)

     

    1. Click the Next button.
    2. Select the removable storage from the list.

     

    Select USB

    (Image credit: Mauro Huculak)

     

    • Quick tip: If the device is not on the list, click the "Refresh drive list" option to make it available.
    1. Click the Next button.
    2. Click the Finish button.
    3. Open File Explorer.
    4. Open the autounattend.xml file location.
    5. Right-click the file and select the Copy option.

     

    autounattend copy from source

    (Image credit: Mauro Huculak)

     

    1. Open the Windows 11 USB location from File Explorer.
    2. Right-click the Paste to copy the autounattend.xml to the installation media.

     

    autounattend paste file into Windows 11 USB

    (Image credit: Mauro Huculak)

     

    Once you complete the steps, you can now use the USB bootable media to perform an unattended installation of the operating system.

     

    It's important to note that you may come across two names for the XML file, including "autounattend.xml" and "unattend.xml."

     

    The "autounattend.xml" file is usually the name of the answer file that you would integrate inside the Windows 11 USB flash drive within the root directory.

     

    On the other hand, the "unattend.xml" file is used to automate deployments. Also, it's usually placed inside the "C:\Windows\Panther\Unattend" folder.

     

    Source


    Hope you enjoyed this news post.

    Thank you for appreciating my time and effort posting news every day for many years.

    News posts... 2023: 5,800+ | 2024: 5,700+ | 2025 (till end of February): 874

    RIP Matrix | Farewell my friend  :sadbye:

    • Like 2
    • Thanks 1

    User Feedback

    Recommended Comments

    9 hours ago, kikuk said:

    Does this mean, I'm able to install it on Windows 10 PC with unsupported Systems (e.g. without TPM and Secure Boot) ??

    You are very late @kikuk because there is several way to install it (W11 since a very very very long time).

    Take a look about one software (such as rufus, ventoy etc) :

    What about the edition ? Basically the "IoT Enterprise LTSC" doesn't require them at all !

    Another example ? You had never read (heard) about the registry (or one command line etc) ? There is plenty articles on the internet (as example take a look about "OOBE\BYPASSNRO" (which is old).

    DIscover by the hasard today : "start ms-cxh:localonly" from one of those articles (extract from twitterX which is already saved in the case).

    To conclude, the answer is yes (and for the record, I don't use it because even the RTM 24H2 was buggy (read the section news)

    Edited by Ecarion
    Link to comment
    Share on other sites




    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...