Repairing a Windows Server 2012 R2 boot failure typically involves using the Windows Recovery Environment (WinRE) to rebuild the Boot Configuration Data (BCD) or fix the Master Boot Record (MBR). 1. Access the Recovery Environment
To start the repair process, you must boot from external media or force the server into its built-in recovery mode.
Using Installation Media: Insert a Windows Server 2012 R2 DVD or bootable USB. Select your language, then click Repair your computer in the bottom-left corner of the setup screen.
Force Automatic Repair: If you do not have media, turn the server on and hold the power button to force a shutdown before Windows finishes loading. Repeat this twice; on the third restart, the server should enter Automatic Repair mode. windows server 2012 r2 boot repair
These videos demonstrate how to access and use the Windows Recovery Environment for boot repairs:
If the server starts but fails before login:
This reverts to the last successful registry and driver configuration. Repairing a Windows Server 2012 R2 boot failure
Sometimes boot failure stems from core OS file corruption, not just bootloader issues. You can run SFC and DISM from the recovery environment.
Steps:
C: in the recovery environment. Type:diskpart
list volume
exit
Look for the volume with the label or type "NTFS" and the size of your C drive. Often it’s D: or E: in WinPE. Assume it’s D: in the following commands.
3. Run SFC against that drive: Step 9: Use Last Known Good Configuration (If
sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows
dism /image:D:\ /cleanup-image /restorehealth
Note: DISM requires a source. If it fails, you may need to specify a /source pointing to the \sources\install.wim on your installation media.
If your server uses BIOS/Legacy boot (not UEFI), run:
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
/fixmbr – writes a compatible MBR to the system partition./fixboot – writes a new boot sector./scanos – scans for installed Windows copies./rebuildbcd – rebuilds the Boot Configuration Data store.After each command, you should see a success message.