This error usually occurs when a PC is configured without a WinRE partition, instead storing WinRE on the Boot or OS partition.
- Boot a Windows Install USB
- Once GUI loads, press SHIFT+F10
BootRec
- BIOS:
BootRec /FixMBR && BootRec /FixBoot && BootRec /RebuildBCD
- UEFI:
BootRec /FixMBR && BootRec /RebuildBCD
- BIOS:
- Reboot to Windows
It's recommended to move WinRE to its own partition: (ReAgentC
)
Open an Admin Terminal: WinKey+R > Open:
cmdpowershell
> CTRL+SHIFT OKBackup current
WinRE.wim
:Verify if
C:\Windows\System32\Recovery\WinRE.wim
exists:ls "C:\Windows\System32\Recovery" | FindStr /I "WinRE.wim" ; ls "C:\Windows\System32\Recovery" -Hidden | FindStr /I "WinRE.wim"
If it doesn't:
Xcopy /H "C:\Recovery\WindowsRE\WinRE.wim" "C:\Windows\System32\Recovery"
- BIOS: May store WinRE on Boot partition: Mount Boot partition at
Y:
> Update WIM path
- BIOS: May store WinRE on Boot partition: Mount Boot partition at
Create a 650MB WinRE Partition: WinKey+R > Open:
DiskPart
> OKsel vol c
shrink desired=665 minimum=650
- WinRE partition must have 320MB free (
WinRE.wim
is ~300MB in size) - If this command fails, you will need to use a 3rd party partition manager to shrink the system partition by 665MB [RAW], as the formatted size should be 650MB.
- WinRE partition must have 320MB free (
- BIOS:
cre par pri size=665 id=27
UEFI:cre par pri size=665 id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
format fs=ntfs quick label=WinRE
assign letter=z
- UEFI only:
gpt attributes=0x8000000000000001
Copy
WinRE.wim
:MkDir "Z:\Recovery\WindowsRE" ; Xcopy /H "C:\Recovery\WindowsRE\WinRE.wim" "Z:\Recovery\WindowsRE"
Disable WinRE:
ReAgentC /Disable
Set Custom WinRE Path:
ReAgentC /SetREimage /Path "Z:\Recovery\WindowsRE"
Enable WinRE:
ReAgentC /Enable
Verify:
ReAgentC /Info