Create an Answer File for UEFI-based Computers

There are additional considerations to be aware of when creating an answer file for UEFI-based computers. Additional partitions are required for UEFI computers. These partitions need to be created during the unattended installation. In addition, you must boot to x64 EFI-mode preinstallation media (x64 Windows PE in EFI mode or x64 Windows Setup in EFI mode). You cannot install Windows to UEFI-based computers in BIOS mode.

For UEFI-based computers, each bootable drive must contain a Unified Extensible Firmware Interface System Partition (ESP) and at least one partition that contains an operating system. In addition, Microsoft strongly recommends that all GPT disks include a Microsoft Reserved Partition (MSR). This partition is used by Windows to store metadata outside of the Windows volume.

For more information about GPT disks, EFI, and hard disk partitions, see The Windows and GPT FAQ.

To Create Additional Partitions for the ESP and MSR

  1. Create a new answer file or update your existing answer file.
    For more information about creating or updating an answer file, see Work with Answer Files in Windows SIM.

  2. Add the following settings to your answer file in the listed configuration pass:

Setting Configuration Pass


1 windowsPE


1 windowsPE

  1. In the answer file pane, in the Microsoft-Windows-Setup component, right-click DiskConfiguration and select Insert New Disk.

  2. First, create the different disk configurations required for UEFI. Configure the following settings in the Disk node:

Setting Value




  1. In the answer file pane, in the Microsoft-Windows-Setup component, right-click CreatePartitions and select Insert New CreatePartition. Repeat this step two more times so that there are three CreatePartition entries in your answer file.

  2. Configure the following settings in the CreatePartition nodes:

Setting Value













The first `CreatePartition` setting creates the UEFI System Partition. The second `CreatePartion` creates the MSR, and the third `CreatePartition` setting creates the partition for Windows. Because the value for Extend is true, the remainder of the disk is used for the Windows partition.
  1. Because partition 3 will be used as the Windows partition, you must specify the correct partition in the InstallTo/PartitionID setting. Configure the following settings in the InstallTo node.
Setting Value




You can now use your updated answer file to deploy to a UEFI-based computer.

Sample Answer File Snippet

The following sample answer file shows how to erase the disk and create the ESP, MSR and Windows partitions.

   <Disk wcm:action="add">
         <CreatePartition wcm:action="add">
         <CreatePartition wcm:action="add">
         <CreatePartition wcm:action="add">

See Also


Apply a Windows Image to UEFI-based Computers