About this article: AI-assisted writing, reviewed against the cited sources. This is source research, not a lab validation of the procedures. Check the stated versions and your own recovery requirements before making changes.
The Windows Recovery Environment (WinRE) is the small recovery operating system that Windows starts when the main installation cannot. On Windows Server it is also where a full-server restore from Windows Server Backup begins. It is worth checking on every physical server in advance, because there are several ordinary ways for it to be unavailable on the day you need it.
The checks are quick. Confirm that WinRE is enabled. Confirm that its partition has room to be updated. Confirm that you also have bootable recovery media that can see the server's disks and can reach the backup. This article explains why each of those matters.
It draws on Microsoft's WinRE, REAgentC, partitioning, BitLocker and Windows Server Backup documentation. The commands are quoted from that documentation and were not run in a lab for this article.
What WinRE is and what it does on a server
Microsoft describes WinRE as a recovery environment that can repair common causes of unbootable operating systems. It is based on the Windows Preinstallation Environment (Windows PE), and it is preloaded into Windows Server 2016 and later installations, as well as into the desktop editions of Windows 10 and Windows 11.
The tools differ between desktop and server editions. Push-button reset, which reinstalls Windows while keeping user data, is for desktop editions only. System Image Recovery, which restores the entire hard drive, is listed for Windows Server editions only. Both editions get Automatic Repair, also called Startup Repair, and a Command Prompt with the Windows PE command-line tools.
For a server administrator, WinRE has three practical jobs:
- Automatic repair. It tries to fix a startup failure without help.
- A working command line outside the installed Windows. From here you can examine disks, repair boot files and edit an offline registry.
- The starting point for a bare-metal restore. Microsoft states that
wbadmin start sysrecovery, the command that performs a full system recovery from a Windows Server Backup, must be run from the Windows Recovery Console. The System Image Recovery option in the WinRE menus leads to the same kind of restore.
That last point is the reason WinRE belongs in a backup plan. A system-state or bare-metal backup is only half of the recovery path. The other half is an environment that can start on the target hardware, see its disks and reach the backup files.
When WinRE starts by itself
According to Microsoft's WinRE technical reference, WinRE starts automatically after:
- two consecutive failed attempts to start Windows
- two consecutive unexpected shutdowns within two minutes of boot completing
- two consecutive restarts within two minutes of boot completing
- a Secure Boot error, except for issues with
Bootmgr.efi - a BitLocker error on touch-only devices.
Administrators can also enter it on purpose. Hold Shift while selecting Restart, or open Advanced startup through the version’s Recovery settings, or start the server from recovery media.
The detection relies on a status flag. Microsoft's troubleshooting page explains that the Windows loader sets a flag when startup begins and clears it before the sign-in screen. If the flag is still set on the next start, Windows assumes a startup failure and fails over to WinRE. A power cut during startup can therefore send a healthy server into WinRE. That can be a false positive, but entering recovery can still interrupt service and needs diagnosis before changes are made.
When the on-disk copy cannot help
The on-disk WinRE depends on the server's own boot path. Microsoft lists the cases in which you have to use bootable WinRE media instead:
- the master boot record, partition table or boot sector of the WinRE partition holds corrupt disk metadata
- the boot manager is missing or corrupt
- the Boot Configuration Data (BCD) store is missing or corrupt.
Add the obvious cases for a physical server. The boot disk or RAID volume has failed. The server is being rebuilt on replacement hardware with empty disks. The disks are present but the controller is different. In each of these, the WinRE copy on the original disk is either gone or unreachable. Only bootable media will start.
So every physical server needs two things that are easy to confuse: a working on-disk WinRE for the common, minor failures, and bootable recovery media for the serious ones. Possible media includes the Windows Server installation media, started into its repair option, or a customised WinRE or Windows PE image built for your hardware. Confirm which your team uses and that it starts on each server model.
Ways the on-disk WinRE goes missing
It is disabled
WinRE can be switched off. reagentc /disable turns off the active WinRE image. Deployment tools, imaging processes and some partition changes can also leave it disabled. Check the status with:
reagentc /info
The output includes Windows RE status, which should read Enabled, and Windows RE location, which shows the disk and partition that hold it. Microsoft's support article KB5028997 uses this command as its first step.
Its partition is too small to update
Microsoft now updates WinRE through the monthly cumulative update for PCs that get updates from Windows Update or Windows Server Update Services. KB5028997 says the change started on 27 June 2023 with the Windows 11, version 22H2 cumulative update. KB5028997 explains that some PCs might not have a recovery partition large enough to complete this update, so the WinRE update fails. The article lists Windows Server 2016 and Windows Server 2019 among the affected products.
The symptom is in the System event log. Microsoft says that a system event with ID 4502 and the message "Windows Recovery Environment servicing failed." with an ErrorPhase of 2 is likely to mean there is not enough space on the recovery partition.
Microsoft's partitioning guidance sets the size rule. The recovery partition should hold the size of winre.wim, plus any customisations, plus an additional 250 MB of free space that Windows needs to service WinRE. The same page asks for the recovery partition to sit immediately after the Windows partition, so Windows can later take space from the Windows partition to grow it. Servers installed years ago with a different layout, or with a data partition placed after the Windows partition, cannot be grown that way.
KB5028997 describes a manual recovery-partition resize for its listed Windows versions and requires the recovery partition to sit after the OS partition. It includes deletion and recreation of a partition, so it is not reproduced here. Record the exact disk layout, backup coverage and applicable update before a qualified administrator prepares a version-specific change. Re-enabling WinRE does not reverse a partition deletion or prove its contents survived.
Our reading is that a server whose WinRE update has failed for months is not necessarily broken. It has an older recovery environment that may lack recent fixes. The bigger risk is a recovery partition that a later update or tidy-up removes or leaves disabled.
It is out of date
An older WinRE image can lack fixes that matter for recovery. Microsoft's guidance on adding updates to WinRE recommends checking the WinRE version number before and after an update, and documents mounting the recovery image with ReAgentC.exe /mountre, adding the Safe OS Dynamic Update package, and committing the change. For a BitLocker-protected disk, the same page says to run reagentc /disable and then reagentc /enable afterwards, so the updated image is correctly configured.
The same applies to recovery media. A USB stick made from installation media three years ago carries a three-year-old recovery environment. Rebuild the media when you change hardware or after major servicing, and label it with its build and date.
It lacks the drivers for the hardware
WinRE can only use the hardware it has drivers for. Microsoft's customise WinRE guidance tells builders to add any third-party driver packages the system needs to boot, using Dism /Image:<mount> /Add-Driver.
On a physical server, the two driver classes that matter most are storage and network:
- Storage. If WinRE cannot see the RAID controller or the NVMe devices, it cannot see the disks. A full-server restore cannot proceed.
- Network. If the backup is on a network share and WinRE has no driver for the network adapter, it cannot reach the backup. Microsoft notes that WinRE does not maintain general-purpose network connectivity by default and turns networking on only when a recovery workflow needs it or a user connects manually.
Replacement hardware is the usual trap. The original server's WinRE may have worked because the original controller used an inbox driver. The replacement may need a vendor driver. Our understanding is that most server vendors publish drivers or a deployment toolkit for this purpose. Check yours, and keep the drivers with the recovery media.
BitLocker and WinRE
If the server's operating system volume is protected by BitLocker, WinRE's behaviour depends on how it started. Microsoft's BitLocker recovery overview explains that on devices supporting the PCR[7] measurement, the TPM validates WinRE as a trusted environment and unlocks BitLocker-protected drives if WinRE has not been modified. If WinRE has been modified, or if it is started manually from a repair disk, the BitLocker recovery key must be provided.
The WinRE technical reference lists running most tools without an administrator sign-in under Windows 11 changes; do not assume that client behaviour applies to a server. It also warns that encrypted files aren't accessible unless the user has the key to decrypt the volume.
In practice, a recovery that starts from USB media on a BitLocker-protected server needs the recovery password in hand. That is a separate preparation task, covered in our article on BitLocker recovery keys.
Starting a full-server restore from WinRE
Windows Server Backup can perform a bare-metal recovery when the backup includes all critical volumes. The wbadmin start backup reference describes the -allCritical parameter as including all critical volumes (volumes that contain the operating system's state) and says it is useful when creating a backup for bare-metal recovery. The PowerShell cmdlet Get-WBBareMetalRecovery reports whether a backup policy can perform bare-metal recoveries.
The restore itself runs from WinRE. The wbadmin start sysrecovery reference documents these parameters:
| Parameter | Microsoft's description, summarised |
|---|---|
-version |
The backup version to recover, in MM/DD/YYYY-HH:MM format |
-backupTarget |
Where the backup is stored, a volume or a network share |
-machine |
The computer to recover; Microsoft requires it whenever -backupTarget is specified, and it distinguishes computers sharing a location |
-restoreAllVolumes |
Restores all volumes, not only the critical ones |
-recreateDisks |
Recreates the disk layout from the backup |
-excludeDisks |
Disks to leave alone when recreating the layout |
-skipBadClusterCheck |
Skips the bad-cluster check |
Two of Microsoft's warnings matter on new hardware. First, -recreateDisks deletes all data on volumes that host operating system components and might also delete data from data volumes. Use -excludeDisks to protect disks you want to keep. Second, when recovering to an alternate server or hardware, Microsoft recommends not using -skipBadClusterCheck.
Whatever restore tool you use, the WinRE requirements are the same. It must start on the hardware, see the target disks, reach the backup and, for BitLocker, have the key.
A readiness check for each physical server
Use read-only inventory first. Booting recovery media, mounting or servicing images, and changing recovery configuration are separate planned operations; rehearse them on a non-production machine.
- Status. Run
reagentc /infoand record whether WinRE is enabled and where it lives. - Servicing. Search the System event log for event 4502 from WinRE servicing. If it appears, plan the partition fix as a change.
- Layout. Record the disk layout, including whether the recovery partition sits immediately after the Windows partition. Record free space in the recovery partition.
- Version. Record the WinRE version, using the method Microsoft describes, and compare it with the version on similar servers.
- Media. Confirm there is bootable recovery media for this hardware model, with its build and date written on it.
- Drivers. Confirm the media contains storage and network drivers for this model, and for any likely replacement model.
- Backup reach. Confirm the backup location is reachable from the recovery environment: a local disk WinRE can see, or a share reachable with the drivers and credentials available at the time.
- Keys. If BitLocker protects the server, confirm the recovery password is retrievable by the recovery team.
Our recommendation is to rehearse the last four on a non-production server of the same model. Start it from the media, check the disks are visible, browse to the backup and stop there. That proves most of the path without restoring anything.
Risks and limits
- This article describes Microsoft's documented behaviour. Hardware vendors add their own recovery tools and drivers, which can change what you need.
- The partition-resize procedure in KB5028997 deletes and recreates a partition on a live system disk. It should only be done as a planned change with a current backup.
-recreateDisksdestroys data on the disks it repartitions. Do not use it without confirming which disks will be affected.- Microsoft's newer network recovery features, such as quick machine recovery and cloud rebuild, are described in the documentation with desktop and Insider-channel limits. This article does not rely on them for servers.
- None of the commands here was run for this article.
Sources
Writer research: 11 November 2026. Independently reopened for review: 13 November 2026.
- Microsoft Learn: Windows Recovery Environment (Windows RE), dated 2026-10-27.
- Microsoft Learn: Windows RE troubleshooting features.
- Microsoft Learn: REAgentC command-line options, dated 2021-10-08.
- Microsoft Learn: UEFI/GPT-based hard drive partitions, updated 2026-09-09.
- Microsoft Learn: Customize Windows RE.
- Microsoft Learn: Add an update package to Windows RE.
- Microsoft Support: KB5028997, Instructions to manually resize your partition to install the WinRE update.
- Microsoft Learn: BitLocker recovery overview.
- Microsoft Learn: wbadmin start sysrecovery.
- Microsoft Learn: wbadmin start backup.
- Microsoft Learn: Get-WBBareMetalRecovery.
This article was originally published on .