Automate Windows Setup
You can prevent some or all of the user interface (UI) pages from Windows Setup from being displayed during installation. The default behavior of Windows Setup is to display the Setup UI if any of the required settings are incorrect or empty.
Use an answer file while installing Windows
You can automate Windows installation by using an answer file:
Use a USB flash drive
- Use an existing answer file or create your own with Windows System Image Manager (Windows SIM).
- Save the file as Autounattend.xml on the root of a USB flash drive.
- On a new PC, insert a Windows installation USB flash drive, as well as the flash drive that contains Autounattend.xml and then boot the PC. When no other answer file is selected, Windows Setup searches for this file.
Select an answer file
- You can select a specific answer file during installation by booting to Windows PE and running Windows Setup using the
/unattend:<filename>option See Windows Setup Command-Line Options for more information.
Automating Windows Setup pages
To automate Windows Setup, add settings for each of the following Windows Setup pages to your unattended Setup answer file. When a setting for a Windows Setup page is configured, Windows Setup skips that page.
Language, Region, and Input Method Selection Page
|Microsoft-Windows-International-Core-WinPE UILanguage||Specifies the default language to use on the installed Windows operating system.|
|Microsoft-Windows-International-Core-WinPE SetupUILanguage UILanguage||Specifies the default language to use during Windows Setup. During installation, Windows Setup displays installation progress in the selected language.|
When you use an Autounattend.xml file with Windows Setup and rely on an implicit answer-file search, the language selection page in Setup is not displayed, even if you explicitly don't configure language settings in your answer file. For more information about implicit answer files, see Windows Setup Automation Overview.
Type your Product Key for Activation Page
The product key must match the Windows edition you intend to install. For more information, see Work with Product Keys and Activation.
|Microsoft-Windows-Setup UserData ProductKey Key||Specifies the product key used to install Windows.|
|Microsoft-Windows-Setup ImageInstall OSImage InstallFrom MetaData Key and Value||Use Key and Value together to select a specific Windows image to install.
You can get the image information by using the
Accept Microsoft Software License Terms Page
|Microsoft-Windows-Setup UserData AcceptEula||Specifies whether to accept Microsoft License Software Terms during Windows Setup.|
Select Upgrade or Custom Installation Page
By default, when an answer file is used, this page does not appear and Windows is configured as a new installation. To configure Windows as an upgrade, add the following setting:
|Microsoft-Windows-Setup UpgradeData Upgrade||Specifies that the present installation is an upgrade from a previous version of Windows.|
Specify Where to Install Windows Page
You can either specify the exact disk ID and partition ID to install Windows, or you can install Windows to the first available partition. To preconfigure your partitions, you may also need to configure your drive partitions.
For full XML examples and recommended partition configurations, see How to Configure UEFI/GPT-Based Hard Disk Partitions or How to Configure BIOS/MBR-Based Hard Disk Partitions.
|Microsoft-Windows-Setup ImageInstall OSImage InstallTo DiskID||Specifies the disk where Windows will be installed.|
|Microsoft-Windows-Setup ImageInstall OSImage InstallTo PartitionID||Specifies the partition where Windows will be installed.|
|Microsoft-Windows-Setup ImageInstall OSImage InstallToAvailablePartition||Specifies to install Windows on the first available partition.|
Settings to Use with Unattended Windows Deployment Services
When deploying Windows using Windows Deployment Services, add each of the settings in the following sections to your unattended-Setup answer file. These are the only settings required for an unattended installation.
Select a Language and Locale Page
|Microsoft-Windows-International-Core-WinPE SetupUILanguage UILanguage||Specifies the default language to use during Windows Setup.|
Provide Windows Deployment Services Credentials Page
|Microsoft-Windows-Setup WindowsDeploymentServices Login||Specifies the credentials used for Windows Deployment Services logon, and specifies in what circumstances the UI is displayed for logon.|
Select an Image to Install Page
|Microsoft-Windows-Setup WindowsDeploymentServices ImageSelection||Specifies the image to be installed and the location where it is installed, as well as whether the UI is displayed.|
Specify Where to Install Windows Page
These settings assume that you are installing to a partitioned disk drive.
|Microsoft-Windows-Setup WindowsDeploymentServices ImageSelection InstallTo DiskID||Specifies the disk ID of the disk to which the image is to be installed.|
|Microsoft-Windows-Setup WindowsDeploymentServices ImageSelection InstallTo PartitionID||Specifies the partition ID of the partition to which the image is to be installed.|