Show
When you start a new installation of Windows 10, you must go through the Windows Setup, which is the experience that helps you to configure various settings, including language preferences, product key, and partition layout. After the installation, you also have to go through the out-of-box experience (OOBE), which you need to complete to configure settings like keyboard layout, account, and privacy settings. Although the process is relatively easy for most people, you still have to spend the time controlling the installation and answering questions, which can take up a lot of time, especially if you need to complete multiple installations in your workplace. If you want to automate the installation process (and save time in 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 the Windows Setup can read to install Windows 10 automatically. In this Windows 10 guide, we walk you through the steps to create an autounattend.xml answer file containing all the necessary settings to perform a basic unattended installation of the OS. On Windows 10, you can use many ways to create and set up an answer file to automate the installation process. This guide outlines the instructions to configure a ".xml" file to perform an unattended installation of Windows 10 Pro 64-bit on a computer with a single drive using Unified Extensible Firmware Interface (UEFI) or Basic Input-Output System (BIOS). After setting up the answer file, the process will erase everything on the drive, create and configure the necessary partitions, and install a fresh copy of Windows 10 with the most basic settings. Warning: This is a friendly reminder that the installation process will completely erase the hard drive of your computer. If you have anything important on this device, it's recommended to make a full backup of your PC before proceeding.
RequirementsThis guide has quite a few steps, and you'll need a few things to complete the project successfully:
How to install Windows System Image ManagerAnyone can write an answer file manually. Microsoft offers the Windows System Image Manager (SIM) console available through the Windows Assessment and Deployment Kit (ADK) to make it easier to create the file to install Windows 10 unattended. To install the Windows System Image Manager, use these steps:
Once you complete the steps, you can use the console to create a ".xml" file with the answer to all the questions to automatically install Windows 10. After the file is created, you can adjust the settings and reuse it for other installations, instead of having to use the Windows System Image Manager tool. How to create Windows 10 answer file projectAfter installing the Windows System Image Manager console, you need to import the OS installation files onto your device, and set up the environment to create an answer file. Import Windows 10 image files To create an answer file, you need to open a Windows 10 image and create a catalog of all the components to automate the installation. However, to perform this task, you must first import the installation files onto your device. To import the Windows 10 installation files, use these steps:
Once you complete the steps, the installation files will be available on your device. However, to continue, you need to confirm the install.wim file image is present in the "sources" folder. If the ISO was created using the Media Creation Tool, you're likely to have an install.esd, which you won't be able to open because it's encrypted. If you don't have an .wim image file, you can get the uncrypted image by downloading the latest Windows 10 ISO file from the Windows Insider Program (opens in new tab) or MSDN with a subscription (opens in new tab). Convert install.esd to install.wim In the case that you're stuck with an "install.esd" image, you can use the DISM command tool to export the image files and create a ".wim" image from a ".esd" file. To decrypt an install.esd image, use these steps:
Alternatively, you can also use the Rufus tool to download the Windows 10 ISO with an "install.wim" file. Download install.wim using Rufus To download a Windows 10 ISO file with Rufus, use these steps:
Once you complete the steps, you'll end up with an ISO file of Windows 10 that includes the install.wim file inside the "sources" folder. Setting up an answer file environment To prepare the environment to create a new answer file project, use these steps:
After you complete the steps, the environment will be created to configure an answer file. How to create Windows 10 answer fileAn answer file contains seven different stages (passes) (opens in new tab), and the stages you need to configure will depend upon the type of automation you want to create. This guide will help you to get started configuring an autounattend.xml answer file with the minimum requirements to automate the installation of Windows 10 Pro using the 1 windowsPE, 4 specialize, and 7 oobeSystem stages. Pass 1 windowsPE Using the pass "1 windowsPE," you'll set up region and language, drive configuration, installation location, and product key. Quick note: Depending on the image, you may see the components name starting with amd64_Microsoft-Windows for the 64-bit version or x86_Microsoft-Windows for the 32-bit version of Windows 10. For this guide, we'll be using the amd64_Microsoft-Windows name format. Configure language and region settings To configure the region and language settings, while in the Windows System Image Manager, use these steps:
Configure installation settings Inside the answer file, you also have to specify the settings to properly configure the drive. To configure the drive settings in the answer file, use these steps:
Once you complete the steps to configure the DiskConfiguration settings, you'll need to set up the partition layout, depending on whether your device uses a legacy BIOS or UEFI. The reason is that BIOS-based computers only require two partitions (System Reserved and Windows), and UEFI-based devices require four partitions (WinRE, EFI, MSR, and Windows). You can check if you're using BIOS or UEFI by opening System Information from the Start menu, and checking the "System Summary." If "BIOS Mode" reads Legacy, then you're using BIOS; if it reads UEFI, you're using UEFI. BIOS only: Creating and modifying partitions If you have a computer using the legacy BIOS, continue with these steps. Otherwise, skip this part, and follow the UEFI instructions below. To configure the partition layout for a device using BIOS, use these steps:
Using the above steps, outlined the steps to carved the partitions. The next steps specify the required file format and partition properties. To specify the format settings in the answer file, use these steps:
In the steps, using the Order and PartitionID, you're specifying how the Windows Setup should configure on each of the two raw partitions we created earlier. You can learn more about the partition layout required for a BIOS system in this Microsoft support page (opens in new tab). As part of this setup, the last task is to indicate the setup where to install Windows 10. To select the drive to install Windows 10 automatically, use these steps:
The above settings tell the setup to install Windows 10 automatically on the first drive inside the second partition. Once you complete the steps, continue with the Defining the product key instructions. UEFI only: Creating and modifying partitions If you have a computer using UEFI, continue with these steps. Otherwise, skip this part, and follow the BIOS instructions outlined above.
Source: Windows Central (Image credit: Source: Windows Central) Using the above steps, outlined the steps to carved the partitions. The next steps specify the required file format and partition properties. To specify the format settings in the answer file, use these steps:
In the steps, using the Order and PartitionID, you're specifying how the setup should configure each of the four raw partitions you have created earlier. You can learn more about the partition layout required for a UEFI system in this Microsoft support page (opens in new tab). As part of this part of the setup, the last task is to indicate the setup where to install Windows 10. To select the drive to install Windows 10 automatically, use these steps:
The above settings will indicate for the setup to install Windows 10 on the first drive inside the fourth partition. Once you complete the steps, continue with the Defining the product key instructions below. Defining the product key In the first pass, you can also specify the product key for Windows 10. If you're creating an answer file that you'll use in multiple devices, you should be using a volume or generic product key. To specify a product key, use these steps:
You can also use a generic product key to create an answer file:
You can always check this Microsoft support website (opens in new tab) to find the appropriate generic key for your installation. Pass 4 specialize If you want to configure additional settings, such as model, manufacturer, computer name, ownership name, timezone, and more during the installation, while in the Windows System Image Manager, use these steps:
Once you complete the steps, during the installation, the setup will read the autounattend.xml file and configure the settings you specified. Pass 7 oobeSystem Using an answer file, you can also automate the configuration of the out-of-box experience (OOBE), including additional language settings, accept the licensing agreement, create a user account, and more. To configure the out-of-box experience, while in the Windows System Image Manager, use these steps:
While you'll see the password in plain text, after saving the autounattend.xml file, the value will be encrypted. How to save Windows 10 answer file projectOnce you complete setting up all the configurations to install Windows 10 automatically, you need to remove all the unmodified components, validate the answer file, and save changes as an autounattend.xml file. Remove unmodified components To remove unnecessary components, use these steps:
After you complete the steps, you need to validate the answer file. Validating answer files To validate the answer file, use these steps:
Once you complete the steps, it's time to save the file and imported to the installation media. Saving the answer file To save the answer file, use these steps:
If you're configuring multiple answer files, it'll be best to save the file on a different folder with a descriptive name. Import answer file to USB media To include an autounattend.xml file on a Windows 10 bootable media, use these steps:
In the case that you don't have a Windows 10 USB installation media, you can create one using the Media Creation Tool (opens in new tab) or using a third-party tool, such as Rufus. How to install Windows 10 using answer fileOnce you have the USB bootable media with the answer file incorporated, you can perform an unattended installation of Windows 10 with these steps: Warning: This process will delete everything on your computer and install Windows 10 without any prompts. Make sure to connect the USB flash drive to the correct device. Otherwise, you may end up wiping out the incorrect device.
If the Windows Setup doesn't start, it's likely because you don't have the device configured to boot from the USB installation media. If this is the case, you'll need to access the BIOS or UEFI firmware on your motherboard to change the boot order. This process typically requires hitting one of the function keys (F1, F2, F3, F10, or F12), the ESC, or Delete key as soon as you start your device. However, these settings will be different per manufacturer, and even per device model. Make sure to check your computer manufacturer's support website for more specific instructions. After getting access to the firmware interface, find the Boot settings and change the boot order to start with the USB drive that includes the installation files, and save the settings (usually using the F10 key). Source: Windows Central (Image credit: Source: Windows Central)If your computer is based on UEFI, then the steps to change the boot order will be different. On a Windows 10 device using UEFI, you'll need to access to Settings > Update & Security > Recovery, and under "Advanced Startup," click the Restart now button. Then click on Troubleshoot > Advanced options > UEFI Firmware Settings, and click the Restart button. Once you're in the UEFI firmware interface, find the Boot settings and change the boot order to start with the USB drive that includes the installation files, and then save the settings. Source: Windows Central (Image credit: Source: Windows Central)If the drive doesn't have an OS already installed, check your manufacturer support website for details to access the UEFI firmware. How to troubleshoot Windows 10 answer fileAlthough an answer file can make the process of installing Windows 10 easier, one small mistake can halt the setup and cause unwanted errors. When validating the answer file, if you come across any problems, you should always re-check the settings for each component you selected and remove any additional element that was not modified. If you made a mistake configuring a property value for a component, don't empty the field, instead right-click the property and select the Revert Change option. At the time to begin the Windows 10 installation, disconnect the computer from the network, because sometimes you may come across problems while the setup is trying to download updates. You can always reconnect to the network after the installation. An answer file explicitly crafted for a computer using a legacy BIOS will not work on a UEFI-based device. Always make sure to use the correct settings for the hardware you're trying to automate the installation process. In the rare case that the answer file you created using Windows System Image Manager isn't working, then you should open the "autounattend.xml" file with any text editor and correct any error manually. Anyone can use this automation process, but this method has been designed for organizations. This means that you won't find an option to perform an installation using a Microsoft account. However, you can always create an installation with a Windows 10 local account and then link it to your Microsoft account. You can perform this task from Settings > Accounts > Your info, and clicking the Sign in with your Microsoft account instead link. You can check out this Microsoft support website (opens in new tab) to learn more about each setting, which you can configure to create an answer file to perform an automated installation of Windows 10. Wrapping things upWhile creating a bootable media with the instructions to install Windows 10 automatically has a lot of steps, the automation process will save you a significant amount of time and hassle, especially when you're in a network environment where you need to setup Windows 10 on multiple machines. We're focusing on the minimum steps to perform an unattended clean installation of Windows 10 to help get started with the process. It's up to you to dig through and configure the components you need to comply with your situation. Furthermore, depending on your installation requirements, you may need to create multiple answer files. Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community. What is WDS and how it works?Windows Deployment Services is a server role that gives administrators the ability to deploy Windows operating systems remotely. WDS can be used for network-based installations to set up new computers so administrators do not have to directly install each operating system (OS).
Does WDS require its own server?You must have a working Domain Name System (DNS) server on the network before you can run Windows Deployment Services.
What is the native deployment service in Windows called?DISM is one of the deployment tools included in the Windows ADK and is used for capturing, servicing, and deploying boot images and operating system images.
|