0

I've performed the Windows 10 reset process successfully. However, now Windows RE is disabled and I can not figure out how to fix that. I now have two recovery partitions, of 523 MB and 510 MB size. I've lost the "Windows Recovery Environment" BCD boot entry.

Windows Recovery Environment (Windows RE) and system reset configuration
Information:

    Windows RE status:         Disabled
    Windows RE location:       
    Boot Configuration Data (BCD) identifier: 00000000-0000-0000-0000-000000000000
    Recovery image location:   
    Recovery image index:      0
    Custom image location:     
    Custom image index:        0

REAGENTC.EXE: Operation Successful.

Firmware Boot Manager
---------------------
identifier              {a5a30fa2-3d06-4e9f-b5f4-a01df9d1fcba}
displayorder            {9dea862c-5cdd-4e70-acc1-f32b344d4795}
                        {9167a6e4-1a80-11ee-b2db-709cd13cf14e}
                        {fe4b36f8-1af6-11ee-b2dc-806e6f6e6963}
                        {11fd2d77-1b03-11ee-b2de-806e6f6e6963}
                        {9167a6e5-1a80-11ee-b2db-709cd13cf14e}
                        {9167a6e6-1a80-11ee-b2db-709cd13cf14e}
                        {a8f97dc3-291a-11ee-bea1-806e6f6e6963}
                        {a8f97dc4-291a-11ee-bea1-806e6f6e6963}
                        {a8f97dc5-291a-11ee-bea1-806e6f6e6963}
timeout                 1

Windows Boot Manager
--------------------
identifier              {9dea862c-5cdd-4e70-acc1-f32b344d4795}
device                  partition=\Device\HarddiskVolume2
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             Windows Boot Manager
locale                  en-US
inherit                 {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
default                 {225a5d6d-1bc8-11ee-a27b-ad72d621c039}
resumeobject            {225a5d6c-1bc8-11ee-a27b-ad72d621c039}
displayorder            {225a5d6d-1bc8-11ee-a27b-ad72d621c039}
toolsdisplayorder       {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout                 30
displaybootmenu         Yes

Firmware Application (101fffff)
-------------------------------
identifier              {11fd2d77-1b03-11ee-b2de-806e6f6e6963}
device                  unknown
description             UEFI: SanDisk, Partition 2

Firmware Application (101fffff)
-------------------------------
identifier              {9167a6e2-1a80-11ee-b2db-709cd13cf14e}
device                  partition=M:
description             UEFI: Generic Mass-Storage 1.11, Partition 1

Firmware Application (101fffff)
-------------------------------
identifier              {9167a6e3-1a80-11ee-b2db-709cd13cf14e}
description             UEFI: General UDisk 5.00, Partition 1

Firmware Application (101fffff)
-------------------------------
identifier              {9167a6e4-1a80-11ee-b2db-709cd13cf14e}
device                  partition=M:
description             UEFI: Generic Mass-Storage 1.11, Partition 1

Firmware Application (101fffff)
-------------------------------
identifier              {9167a6e5-1a80-11ee-b2db-709cd13cf14e}
description             UEFI: PXE IPv4 Intel(R) Ethernet Controller (2) I225-V

Firmware Application (101fffff)
-------------------------------
identifier              {9167a6e6-1a80-11ee-b2db-709cd13cf14e}
description             UEFI: PXE IPv6 Intel(R) Ethernet Controller (2) I225-V

Firmware Application (101fffff)
-------------------------------
identifier              {a8f97dc3-291a-11ee-bea1-806e6f6e6963}
description             UEFI:CD/DVD Drive

Firmware Application (101fffff)
-------------------------------
identifier              {a8f97dc4-291a-11ee-bea1-806e6f6e6963}
description             UEFI:Removable Device

Firmware Application (101fffff)
-------------------------------
identifier              {a8f97dc5-291a-11ee-bea1-806e6f6e6963}
description             UEFI:Network Device

Firmware Application (101fffff)
-------------------------------
identifier              {fe4b36f8-1af6-11ee-b2dc-806e6f6e6963}
device                  unknown
path                    \EFI\MICROSOFT\BOOT\BOOTMGFW.EFI
description             UEFI: SanDisk, Partition 1

Windows Boot Loader
-------------------
identifier              {225a5d6d-1bc8-11ee-a27b-ad72d621c039}
device                  partition=C:
path                    \WINDOWS\system32\winload.efi
description             Windows 10
locale                  en-US
inherit                 {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
recoverysequence        {00000000-0000-0000-0000-000000000000}
displaymessageoverride  Recovery
recoveryenabled         Yes
isolatedcontext         Yes
allowedinmemorysettings 0x15000075
osdevice                partition=C:
systemroot              \WINDOWS
resumeobject            {225a5d6c-1bc8-11ee-a27b-ad72d621c039}
nx                      OptIn
bootmenupolicy          Standard
hypervisorlaunchtype    Auto

Resume from Hibernate
---------------------
identifier              {225a5d6c-1bc8-11ee-a27b-ad72d621c039}
device                  partition=C:
path                    \WINDOWS\system32\winresume.efi
description             Windows Resume Application
locale                  en-US
inherit                 {1afa9c49-16ab-4a5c-901b-212802da9460}
recoverysequence        {00000000-0000-0000-0000-000000000000}
recoveryenabled         Yes
isolatedcontext         Yes
allowedinmemorysettings 0x15000075
filedevice              partition=C:
filepath                \hiberfil.sys
bootmenupolicy          Standard
debugoptionenabled      No

Windows Memory Tester
---------------------
identifier              {b2721d73-1db4-4c62-bf78-c548a880142d}
device                  partition=\Device\HarddiskVolume2
path                    \EFI\Microsoft\Boot\memtest.efi
description             Windows Memory Diagnostic
locale                  en-US
inherit                 {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
badmemoryaccess         Yes

EMS Settings
------------
identifier              {0ce4991b-e6b3-4b16-b23c-5e0d9250e5d9}
bootems                 No

Debugger Settings
-----------------
identifier              {4636856e-540f-4170-a130-a84776f4c654}
debugtype               Local

RAM Defects
-----------
identifier              {5189b25c-5558-4bf2-bca4-289b11bd29e2}

Global Settings
---------------
identifier              {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
inherit                 {4636856e-540f-4170-a130-a84776f4c654}
                        {0ce4991b-e6b3-4b16-b23c-5e0d9250e5d9}
                        {5189b25c-5558-4bf2-bca4-289b11bd29e2}

Boot Loader Settings
--------------------
identifier              {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
inherit                 {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
                        {7ff607e0-4395-11db-b0de-0800200c9a66}

Hypervisor Settings
-------------------
identifier              {7ff607e0-4395-11db-b0de-0800200c9a66}
hypervisordebugtype     Serial
hypervisordebugport     1
hypervisorbaudrate      115200

Resume Loader Settings
----------------------
identifier              {1afa9c49-16ab-4a5c-901b-212802da9460}
inherit                 {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}

The first WinRE partition appears to be incomplete as there are no other files in the folder where the Winre.wim file is located. Attempting to manually specify the second partition that appears to be OK (reagentc.exe /setreimage /path Y:\Recovery\WindowsRE\Winre.wim) for use reports success, but subsequent reagentc.exe /enable reports all the same: "REAGENTC.EXE: Unable to update Boot Configuration Data". I've tried to set the 1st partition to a basic data partition and ensure the 2d has the correct partition type ID as well.

How do I fix this?

UPDATE: found the log files, attaching them now:

2023-07-25 17:51:31, Info                         [ReAgentc.exe] -----Executing command line: "C:\WINDOWS\system32\ReAgentc.exe" /enable-----
2023-07-25 17:51:31, Info                         [ReAgentc.exe] ------------------------------------------------------
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Enter WinRECheckGuid
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Parameter: TargetOsGuid: : NULL 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Exit WinRECheckGuid return error code: 0x0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Enter WinReInstall
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Parameter: ReInstallBecauseOfBitlocker: 0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Install on target OS step 1: collect info like partition list, loading reagent.xml, source winre.wim and partition
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Enumerate and log all fixed partitions:
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{48686080-7948-482c-bd6e-5897c8c50e49}, PartitionName: \\?\GLOBALROOT\device\harddisk4\partition2
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 2, offset: 549453824, free space: 252575744, total space: 300335104
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:4, DiskSignature:0, NTFS:0, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {C12A7328-F81F-11D2-BA4B-00A0C93EC93B} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {10F90CB2-5858-9090-8081-828310111213} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{0000008d-83e0-2b05-ff33-d7011a010000}, PartitionName: \\?\GLOBALROOT\device\harddisk6\partition2
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 2, offset: 135269888, free space: 267675643904, total space: 1000068431872
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:6, DiskSignature:0, NTFS:1, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {55F33A00-6786-03AE-80CE-7C95E199EB00} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{1a4b4c45-1b8e-11ee-a71b-9873aff86160}, PartitionName: \\?\GLOBALROOT\device\harddisk4\partition8
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 8, offset: 448003047424, free space: 86556672, total space: 534769664
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:4, DiskSignature:0, NTFS:1, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {DE94BBA4-06D1-4D40-A16A-BFD50179D6AC} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {10F90CB2-5858-9090-8081-828310111213} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{1a4b4c44-1b8e-11ee-a71b-9873aff86160}, PartitionName: \\?\GLOBALROOT\device\harddisk4\partition7
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 7, offset: 447688474624, free space: 310353920, total space: 310378496
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:4, DiskSignature:0, NTFS:0, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {10F90CB2-5858-9090-8081-828310111213} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{7db2481d-bd54-11ec-850e-9db0c526c3cb}, PartitionName: \\?\GLOBALROOT\device\harddisk4\partition6
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 6, offset: 143152775168, free space: 12039639040, total space: 304535695360
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:4, DiskSignature:0, NTFS:1, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {10F90CB2-5858-9090-8081-828310111213} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{7db24819-bd54-11ec-850e-9db0c526c3cb}, PartitionName: \\?\GLOBALROOT\device\harddisk4\partition5
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 5, offset: 78724242944, free space: 0, total space: 0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:4, DiskSignature:0, NTFS:0, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {10F90CB2-5858-9090-8081-828310111213} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{7db24811-bd54-11ec-850e-9db0c526c3cb}, PartitionName: \\?\GLOBALROOT\device\harddisk4\partition4
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 4, offset: 984612864, free space: 16934952960, total space: 77739323392
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:4, DiskSignature:0, NTFS:1, Mbr:0, Active:0, Boot:1, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {10F90CB2-5858-9090-8081-828310111213} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{bf0b9e10-ad65-01d9-08cb-85dfb2d6ec00}, PartitionName: \\?\GLOBALROOT\device\harddisk4\partition1
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 1, offset: 1048576, free space: 90918912, total space: 548401152
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:4, DiskSignature:0, NTFS:1, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {10F90CB2-5858-9090-8081-828310111213} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{21690322-195b-4fc7-93b9-cd3e54fc8ad1}, PartitionName: \\?\GLOBALROOT\device\harddisk3\partition2
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 2, offset: 16777216, free space: 1506555363328, total space: 3000574668800
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:3, DiskSignature:0, NTFS:1, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {7634C4F7-E13C-4425-B904-2C24D8BF80BE} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{27557c6f-0000-0000-0000-100000000000}, PartitionName: \\?\GLOBALROOT\device\harddisk2\partition1
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 1, offset: 1048576, free space: 58231140352, total space: 500104687616
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:2, DiskSignature:659913839, NTFS:1, Mbr:1, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] MBR partition id: 0x7
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {00000000-0000-0000-0000-000000000000} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{3b8a26a2-cbd5-4549-a6f2-3800e39e3dbe}, PartitionName: \\?\GLOBALROOT\device\harddisk1\partition1
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 1, offset: 32768, free space: 81808039936, total space: 500105728000
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:1, DiskSignature:0, NTFS:1, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {5DE2D4BA-5015-4342-BB00-018B62B6827C} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{0f9a8d0c-13f8-48c8-9c9a-3625d0ee6ca3}, PartitionName: \\?\GLOBALROOT\device\harddisk0\partition3
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 3, offset: 64548241408, free space: 121528864768, total space: 382600212480
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:0, DiskSignature:0, NTFS:1, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {55DE90FF-D869-4801-BDBE-927EAD1B8F16} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Partition info--
2023-07-25 17:51:31, Info                         [ReAgentc.exe] VolumeName: \\?\Volume{781e2292-d9cb-43f5-a940-1614a736b33e}, PartitionName: \\?\GLOBALROOT\device\harddisk0\partition2
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Partition number: 2, offset: 122683392, free space: 16323956736, total space: 64424611840
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskNumber:0, DiskSignature:0, NTFS:1, Mbr:0, Active:0, Boot:0, BitlockerEnabled:0
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GPT partition GUID:: {EBD0A0A2-B9E5-4433-87C0-68B6B72699C7} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DiskId: {55DE90FF-D869-4801-BDBE-927EAD1B8F16} 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Get downlevel ReAgent config
2023-07-25 17:51:31, Info                         [ReAgentc.exe]  Downlevel config file path: \Recovery\ReAgentOld.xml
2023-07-25 17:51:31, Info                         [ReAgentc.exe]  Checking for downlevel WinRE installation.
2023-07-25 17:51:31, Warning                      [ReAgentc.exe] read xml file (\Recovery\ReAgentOld.xml) failed: 0x3
2023-07-25 17:51:31, Warning                      [ReAgentc.exe] ReAgentXMLParser::ParseConfigFile failed to read config xml file (0x3) in file base\diagnosis\srt\reagent2\reinfo\parser_2.0.cpp line 784
2023-07-25 17:51:31, Warning                      [ReAgentc.exe] ReAgentXMLParser::ParseConfigFile (xml file: \Recovery\ReAgentOld.xml) returning 0x3
2023-07-25 17:51:31, Warning                      [ReAgentc.exe] ReAgentConfig::ParseConfigFile  returned with 0x3 
2023-07-25 17:51:31, Warning                      [ReAgentc.exe] ReAgentConfig::Init failed to init reagent xml parser (0x3) in file base\diagnosis\srt\reagent2\reinfo\parser_2.0.cpp line 1921
2023-07-25 17:51:31, Info                         [ReAgentc.exe]  Ignore the error 3 in function GetDownlevelReAgentConfig
2023-07-25 17:51:31, Info                         [ReAgentc.exe] First round search
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Get ReAgent config
2023-07-25 17:51:31, Info                         [ReAgentc.exe] GetReAgentConfig Config file path: C:\WINDOWS\system32\Recovery\ReAgent.xml
2023-07-25 17:51:31, Info                         [ReAgentc.exe] CheckRegKey test hook (SystemSetupInProgress) present and disabled
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Update enhanced config info is enabled.
2023-07-25 17:51:31, Error                        [ReAgentc.exe] BcdOpenObject(WinRE) failed: 0xc0000034
2023-07-25 17:51:31, Info                         [ReAgentc.exe] winreGetWinReGuid returning 0X2
2023-07-25 17:51:31, Info                         [ReAgentc.exe] ReAgentConfig::ReadBcdAndUpdateEnhancedConfigInfo WinRE disabled, WinRE Guid could not be determined  (0x2) 
2023-07-25 17:51:31, Info                         [ReAgentc.exe] --Install on target OS step 2: detect and fix if there is any issue for winre settings
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DetectAndFixWinReIssues (WinRE)WinRE is already installed, setting BCD entry (winre location \\?\GLOBALROOT\device\harddisk4\partition1\Recovery\WindowsRE)
2023-07-25 17:51:31, Error                        [ReAgentc.exe] BcdOpenObject(WinRE) failed: 0xc0000034
2023-07-25 17:51:31, Info                         [ReAgentc.exe] winreGetWinReGuid returning 0X2
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DetectAndFixWinReIssues Failed to get WinRE GUID.
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DetectAndFixWinReIssues Will fix the BCD entry.
2023-07-25 17:51:31, Error                        [ReAgentc.exe] BcdOpenObject(WinRE) failed: 0xc0000034
2023-07-25 17:51:31, Info                         [ReAgentc.exe] winreGetWinReGuid returning 0X2
2023-07-25 17:51:31, Info                         [ReAgentc.exe] NOTE: WILL RETRY. We have to uninstall WinRE and retry because WinRE is installed but its BCD entry is not present.
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DetectAndFixWinReIssues Copying Winre.wim from \\?\GLOBALROOT\device\harddisk4\partition1\Recovery\WindowsRE to staging location
2023-07-25 17:51:31, Warning                      [ReAgentc.exe] boot.sdi is not available under \\?\GLOBALROOT\device\harddisk4\partition1\Recovery\WindowsRE
2023-07-25 17:51:31, Info                         [ReAgentc.exe] winreCopyWIMBack moved WIM file from \\?\GLOBALROOT\device\harddisk4\partition1\Recovery\WindowsRE to  successfully!
2023-07-25 17:51:31, Info                         [ReAgentc.exe] DetectAndFixWinReIssues we should retry because winre installation was changed.
2023-07-25 17:51:31, Error                        [ReAgentc.exe] failed to detect and fix winre issues, error:0x2
2023-07-25 17:51:31, Info                         [ReAgentc.exe] Exit WinReInstall return value: 0, last error: 0x2
2023-07-25 17:51:31, Error                        [ReAgentc.exe] failed to install winre: : 0x2
2023-07-25 17:51:31, Info                         [ReAgentc.exe] ------------------------------------------------------
2023-07-25 17:51:31, Info                         [ReAgentc.exe] -----Exiting command line: "C:\WINDOWS\system32\ReAgentc.exe" /enable, Error: 2-----
ZzZombo
  • 103
  • 4
  • WinRE never has a BCD entry as it doesn't rely on the BCD Store to boot _(the only BCD Store info WinRE affects is listing yes/no for `recoveryenabled` under the OS boot entry and a identifier pointing to the OS GUID)_ - I cover how to resolve this in [this](https://superuser.com/a/1514869/529800) answer, as it's more involved than `ReAgentC /enable`. For the answer, you'll follow #'s 1, 2, & 4 after mounting the WinRE partition you want to use at `Z:` _(you'll want to use the WinRE partition at the end of the harddrive)_. WinRE partition require a specific GUID and GPT attribute _(see #3)_ – JW0914 Jul 25 '23 at 12:26
  • @JW0914: that's wrong, previously the OS did have a boot entry dedicated to the WinRE system. Now I can't enable it because it explicitly tells me that it is unable to update BCD, so I'm unsure how does your comment reconciles with my experience. – ZzZombo Jul 26 '23 at 08:40
  • The only way WinRE could have had a boot entry in the BCD Store is if it was manually added, and if that was the case, your system would have been a dual boot setup that would have had to manually select whether to boot to the OS or WinRE upon every boot. WinRE does not get added to the BCD Store when configured, which can be seen at the very bottom of [this](https://superuser.com/a/1584890/529800) answer, where I enumerated the BCD Store to show precisely this with WinRE enabled and disabled. – JW0914 Jul 26 '23 at 11:55
  • I didn't add anything to the BCD store before I reset the OS. It was a fresh install, however, there was a hardware failure that had corrupted the OS shortly after so I resorted to resetting it. It wasn't dual-boot too, because I had actually formatted pretty much every drive anew beforehand. – ZzZombo Jul 27 '23 at 05:38
  • I've provided the way to fix the issue you're having, but the BCD Store never contains an entry for WinRE. – JW0914 Jul 27 '23 at 16:23

0 Answers0