Windows identifies the system drive using the following methods:īIOS-based computers: the BIOS-reported system drive is used. Make sure that the Diskpart script doesn't include commands to select the drive or clean the drive ( select disk 0, clean).Make sure that the filename listed in the element of the ResetConfig.xml file matches the filename in the Diskpart script.Make sure that ResetConfig.xml is saved as a UTF-8 file.Select Yes, repartition the drives > Just remove my files > Reset.If you're prompted to clean the drive, select Yes. Click Troubleshoot > Remove everything > Next.At the Windows RE Tools menus, select a keyboard layout, for example, US.Start the computer, press a key to open the firmware boot menus, and then select the appropriate boot device.On a computer that has no operating system, insert your recovery media.
Select Copy the recovery partition from the PC to the recovery drive > Next > Next > Create. Restart the destination computer, and complete Out-Of-Box Experience (OOBE).Ĭlick Start, type create a recovery drive, and select Create a recovery drive, and click Yes at the UAC prompt.
Step 2: Test that Windows can create recovery media Where E is the drive letter of the USB flash drive and R is the drive letter of the recovery image partition. On your destination computer, insert the USB flash drive with the configuration files.Ĭopy the configuration files to the destination computer:Ĭopy E:\Recovery\RecoveryImage\* R:\RecoveryImage\*
Step 1: Add the configuration files to the destination computer Users can use this option to create recovery media when needed. In the Encoding box, select UTF-8, and save this file as E:\Recovery\RecoveryImage\ResetConfig.xml. Save the file using the UTF-8 file format:Ĭlick File, and then click Save As. In Notepad, create a configuration file that points to your push-button reset partition script.įor information about configuring this file, see ResetConfig XML Reference. Push-button reset configuration file (ResetConfig.xml)
Rem ** Update this size to match the size of Rem ** NOTE: For Advanced Format 4Kn drives, Rem = The differences between this file and Rem Adjust the partition sizes to fill the drive Rem reset the drive and recreate five partitions Rem = These commands are used with DiskPart to UEFI (based on UEFI/GPT-based hard drive partitions): rem = ResetPartitions-UEFI.txt = Recommended size of the Windows RE tools partition is 990 MB with a minimum of 250 MB free.
When using a custom partition layout the size of the Windows RE tools partition should have enough of free space to allow for a larger size in the future.