Bare metal recovery
If the user needs to replace their hard drive or completely wipe it, they can use bootable recovery media to perform bare metal recovery. Bare metal recovery removes all existing partitions on the system disk and recreates all partitions, before restoring software onto the PC. Two types of recovery media are supported:
- User-created recovery media using the Create a recovery drive utility in Windows 10. This backs up the files needed to restore the PC to a pristine state.
- Manufacturer-created recovery media for support and refurbishing scenarios by placing a recovery image on a piece of bootable Windows RE media.
When user-created recovery media are used, the bare metal recovery feature can be summarized in the following steps:
- The system disk is identified.
- All partitions from the system disk are removed.
- Data erasure is performed on the system disk (if requested by the user).
- Factory or default partition layout is recreated on the system disk.
- All partitions are formatted.
- Recovery files from recovery media are copied to the OS volume.
- A new copy of the OS is constructed at the root of the OS volume.
- Customizations stored in provisioning packages are applied.
- Drivers are injected into the new OS.
- Preinstalled Windows apps are restored.
- Boot files are configured on the system partition.
- PC reboots to the new OS.
- OOBE starts.
Data removal options
When users use the bare metal recovery feature, they can choose to perform data erasure on the entire system disk before the factory partition layout is reapplied. On most PCs, this data erasure process is done in software, writing cryptographically random patterns to the entire LBA range of the system disk once.
However, on certain hardware configurations, the data erasure process is performed by the storage device’s hardware controller. This often takes less time to complete and is usually more thorough in removing remnant data. Hardware-based data erasure is supported on PCs with storage devices which meet the following criteria:
- Supports the Secure Trim and Sanitize commands
System disk selection
Bare metal recovery automatically identifies the system disk using the following methods:
Adaptor location path and GUID of the system disk are written to a UEFI variable during OOBE.
Performed only when both the system and Windows partitions are on the system disk.
The variable is updated if necessary when Windows RE gets disabled and then re-enabled.
During bare metal recovery, if multiple internal disks are detected, the system disk is searched in this order:
- Disk with GUID matching the value stored in the UEFI variable.
- Disk with location path matching the value stored in firmware.
- Disk with an existing ESP.
- If multiple disks with ESP are found, bare metal recovery will not proceed.
- Uninitialized (raw) disk.
- If multiple uninitialized disks are found, bare metal recovery will not proceed.
On legacy BIOS/MBR systems, the BIOS-reported system disk is used.
User-created recovery media
When users create USB recovery media using the Create a recovery drive utility, the resulting media always contain a bootable copy of Windows RE. This gives users access to troubleshooting and recovery tools when booting from recovery media.
Users can optionally back up files required to perform bare metal recovery. When the option is selected, the following are copied onto the USB recovery media as well:
- Windows Component Store
- Installed drivers
- Backup of preinstalled Windows apps
- Provisioning packages containing preinstalled customizations (under C:\Recovery\Customizations)
- Push-button Reset configuration XML and scripts (under C:\Recovery\OEM)
Manufacturer-created recovery media
Bare metal recovery supports the use of a recovery WIM image when the media are prepared by manufacturers. This type of media is primarily used in support and refurbishing scenarios.
Manufacturer-created media must contain the following:
- A bootable Windows RE image.
- A Push-button reset-compatible recovery image (install.wim).
- A Push-button reset configuration file (Resetconfig.xml) which specifies disk partitioning information.
- A DISKPART script to perform partitioning of the disk.
Let's set it up!
- Bare metal reset/recovery: enable your users to create recovery media using the Create a recovery drive utility in Windows 10. This backs up the files needed to restore the PC to a pristine state.
- Bare metal reset/recovery: create recovery media while deploying new devices for support and refurbishing scenarios by placing a recovery image on a piece of bootable Windows RE media.