Question missing Windows RE image

Kyroix 74

Reputable
Jul 24, 2020
205
2
4,585
Hi all, i cannot complete windows updates and the error code i received (0x80070643) has led to my sytem not having the winre.wim file.
I tried the CMD prompt of reagentc /enable but it says the windows re image was not found.
I then have done bcdedit /enum all and at the windows boot loader section, it says:

Windows Boot Loader
-------------------
identifier {2c0b4d54-ec9f-11eb-9926-00d861dcc92e}
device ramdisk=[unknown]\Recovery\WindowsRE\Winre.wim,{2c0b4d55-ec9f-11eb-9926-00d861dcc92e}
path \windows\system32\winload.efi
description Windows Recovery Environment
locale en-gb
inherit {bootloadersettings}
displaymessage Recovery
osdevice ramdisk=[unknown]\Recovery\WindowsRE\Winre.wim,{2c0b4d55-ec9f-11eb-9926-00d861dcc92e}
systemroot \windows
nx OptIn
bootmenupolicy Standard
winpe Yes

Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.efi
description Windows 10
locale en-GB
inherit {bootloadersettings}
recoverysequence {2c0b4d54-ec9f-11eb-9926-00d861dcc92e}
displaymessageoverride Recovery
recoveryenabled Yes
isolatedcontext Yes
allowedinmemorysettings 0x15000075
osdevice partition=C:
systemroot \Windows
resumeobject {a08d21e7-eca4-11eb-93b4-9ed25e4dadc9}
nx OptIn
numproc 12
bootmenupolicy Standard
usefirmwarepcisettings No
useplatformtick Yes
disabledynamictick Yes

This means i cant do any updates, and i cant access the windows recovery either, im not so smart with all this so any help will do thanks!
 
Please show screenshot from Disk Management.
(upload to imgur.com and post link)

To install windows recovery environment, a recovery partition is required on OS drive.
Then you can extract winre.wim from windows installation media,
copy it to required location and
install windows recovery environment with reagentc command.
 
Well - you don't have a recovery partition.
It was probably in that unallocated 528MB space on disk 0.

Execute following to create a recovery partition on OS drive (from elevated command prompt)
diskpart
list disk
select disk 2
(select OS disk)
list partition
select partition 3
(select 931GB OS C: partition, partition number should be 3, but double check that)
shrink desired=750
create partition primary size=750
format fs=ntfs quick
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes =0x8000000000000001
exit

There should not be any error messages.
If you get any errors, then stop immediately.

After done, show resulting screenshot from Disk Management.
 
Last edited:
  • Like
Reactions: PEnns

Kyroix 74

Reputable
Jul 24, 2020
205
2
4,585
Well - you don't have a recovery partition.
It was probably in that unallocated 528MB space on disk 0.

Execute following to create a recovery partition on OS drive (from elevated command prompt)
diskpart
list disk
select disk 2
(select OS disk)
list partition
select partition 3
(select 931GB OS C: partition, partition number should be 3, but double check that)
shrink desired=750
create partition primary size=750
format fs=ntfs quick
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
exit

There should not be any error messages.
If you get any errors, then stop immediately.

After done, show resulting screenshot from Disk Management.
Should look better now
View: https://imgur.com/a/cWMjlL0
 
Ok then.
Here are instructions, to create windows recovery environment.
You'll need windows 10 installation iso image for this.

#Windows 10 (esd)

1. Mount ISO file, copy install.esd file from it
2. Find index
Dism /Get-WimInfo /WimFile:G:\MISC\SETUPS\OS\Windows.10\install.esd
(replace to appropriate path to install.esd file)
3. Convert esd to wim format (this command is single line, not two lines)
Dism /Export-image /SourceImageFile:G:\MISC\SETUPS\OS\Windows.10\install.esd /SourceIndex:6 /DestinationImageFile:G:\MISC\SETUPS\OS\Windows.10\install.wim /Compress:max /CheckIntegrity
(replace to appropriate path to install.esd file; replace to appropriate index value;replace to appropriate file name for target wim file)
4. Find index
Dism /Get-WimInfo /WimFile:G:\MISC\SETUPS\OS\Windows.10\install.wim
5. Mount wim file
Dism /Mount-Image /ImageFile:"G:\MISC\SETUPS\OS\Windows.10\install.wim" /index:1 /MountDir:"G:\MOUNT" /Optimize /Checkintegrity
(replace to appropriate path to install.wim file; replace to appropriate index value; replace to appropriate mount directory - it must exist and must be empty)
6.copy reagent.xml and winre.wim from
G:\MOUNT\Windows\System32\Recovery\
7. Dismount image
Dism.exe /UnMount-Image /MountDir:G:\MOUNT /Discard
8. Install recovery environment
a) disable old recovery environment​
reagentc /disable
b) Copy winre.wim and reagent.xml to​
C:\Windows\System32\Recovery​
c) Install recovery environment​
reagentc /enable
d) Check status​
reagentc /info
 
Last edited:

Kyroix 74

Reputable
Jul 24, 2020
205
2
4,585
BTW - you could try installing failing windows update first.
It may install windows recovery environment on its own.


Yes. You download windows image creation tool,
run it and
choose options to create windows 10 installation iso image.
1. Tried to install that update but it wont do it
Do i install the iso image onto another one of my drives or use a usb flash drive?
 

Kyroix 74

Reputable
Jul 24, 2020
205
2
4,585
Ok then.
Here are instructions, to create windows recovery environment.
You'll need windows 10 installation iso image for this.
Quoting this, how do i go about this part?
2. Find index
Dism /Get-WimInfo /WimFile:G:\MISC\SETUPS\OS\Windows.10\install.esd
(replace to appropriate path to install.esd file)
3. Convert esd to wim format (this command is single line, not two lines)
Dism /Export-image /SourceImageFile:G:\MISC\SETUPS\OS\Windows.10\install.esd /SourceIndex:6 /DestinationImageFile:G:\MISC\SETUPS\OS\Windows.10\install.wim /Compress:max /CheckIntegrity
(replace to appropriate path to install.esd file; replace to appropriate index value;replace to appropriate file name for target wim file)
Its hella confusing to me, I dont know what i need to change in the command line
 
Quoting this, how do i go about this part?
2. Find index
Dism /Get-WimInfo /WimFile:G:\MISC\SETUPS\OS\Windows.10\install.esd
(replace to appropriate path to install.esd file)
This command lists available windows 10 installations in iso file (like pro, home, starter, etc).
You have to specify, where install.esd file is located.
For example, if you copied install.esd to c:\installs
then replace part of the command to reflect that.
Dism /Get-WimInfo /WimFile:c:\installs\install.esd

3. Convert esd to wim format (this command is single line, not two lines)
Dism /Export-image /SourceImageFile:G:\MISC\SETUPS\OS\Windows.10\install.esd /SourceIndex:6 /DestinationImageFile:G:\MISC\SETUPS\OS\Windows.10\install.wim /Compress:max /CheckIntegrity
(replace to appropriate path to install.esd file; replace to appropriate index value;replace to appropriate file name for target wim file)
You have to specify, where install.esd file is located and where install.wim file will be created.
For example, if you copied install.esd to c:\installs
and want install.wim to be created there too, then
modify command to reflect that.
Also specify index value, you got from previous command.
Dism /Export-image /SourceImageFile:c:\installs\install.esd /SourceIndex:6 /DestinationImageFile:c:\installs\install.wim /Compress:max /CheckIntegrity
 

Kyroix 74

Reputable
Jul 24, 2020
205
2
4,585
This command lists available windows 10 installations in iso file (like pro, home, starter, etc).
You have to specify, where install.esd file is located.
For example, if you copied install.esd to c:\installs
then replace part of the command to reflect that.
Dism /Get-WimInfo /WimFile:c:\installs\install.esd


You have to specify, where install.esd file is located and where install.wim file will be created.
For example, if you copied install.esd to c:\installs
and want install.wim to be created there too, then
modify command to reflect that.
Also specify index value, you got from previous command.
Dism /Export-image /SourceImageFile:c:\installs\install.esd /SourceIndex:6 /DestinationImageFile:c:\installs\install.wim /Compress:max /CheckIntegrity
Ok, for me it werent working until i changed the cmd path directory to my C drive, then changed the path to the ESD file and the WIM file is now sitting in my c drive