create a log file:
reagentc /disable
reagentc /setreimage /path R:\Recovery\WindowsRE
reagentc /enable /logpath c:\WinRE.log
I'm getting same issue as you:
Code:
PS C:\WINDOWS\system32> reagentc /disable
REAGENTC.EXE: Operation Successful.
PS C:\WINDOWS\system32> reagentc /setreimage /path R:\Recovery\WindowsRE\WinRE.wim
Directory set to: \\?\GLOBALROOT\device\harddisk0\partition1\Recovery\WindowsRE
REAGENTC.EXE: Operation Successful.
PS C:\WINDOWS\system32> reagentc /enable /logpath c:\WinRE.log
REAGENTC.EXE: Operation Successful.
PS C:\WINDOWS\system32> reagentc /info
Windows Recovery Environment (Windows RE) and system reset configuration
Information:
Windows RE status: Enabled
Windows RE location: \\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE
Boot Configuration Data (BCD) identifier: 8ddcf088-4251-11e8-a432-f20650aa86e6
Recovery image location:
Recovery image index: 0
Custom image location:
Custom image index: 0
REAGENTC.EXE: Operation Successful.
PS C:\WINDOWS\system32>
It says my Recovery partition is too small - from c:\WinRE.log
Code:
2018-04-21 09:35:43, Info [ReAgentc.exe] MeetPartitionRequirements Partition details: {Offset: 1048576, Free space: 40579072, Total space: 471855104}
2018-04-21 09:35:43, Info [ReAgentc.exe] MeetPartitionRequirements WinRE WIM size: 416713175
2018-04-21 09:35:43, Info [ReAgentc.exe] MeetPartitionRequirements Required free space: 52428800
2018-04-21 09:35:43, Warning [ReAgentc.exe] MeetPartitionRequirements Not enough free space req = 52428800 avail = 40579072 offset = 1048576
2018-04-21 09:35:43, Info [ReAgentc.exe] --Install on target OS step 4: check if we can put winre.wim in other partitions or create one if needed.
2018-04-21 09:35:43, Info [ReAgentc.exe] CanPutWinREOnOtherPartitions WinRE is not staged. Searching for a suitable partition for WinRE.
2018-04-21 09:35:43, Info [ReAgentc.exe] Entering FindTargetPartition
2018-04-21 09:35:43, Info [ReAgentc.exe] RegLoadKey $OFFLINE$SYSTEM failed. Error: 0x522.
2018-04-21 09:35:43, Info [ReAgentc.exe] Not allowed to repartition the disk
2018-04-21 09:35:43, Info [ReAgentc.exe] Start looping through each partition and initialize os partition, recovery partition and system partition for MBR
2018-04-21 09:35:43, Info [ReAgentc.exe] Checking partition at offset 472907776, partition number: 2
2018-04-21 09:35:43, Info [ReAgentc.exe] skip GPT Partition which type is not PARTITION_MSFT_RECOVERY_GUID
2018-04-21 09:35:43, Info [ReAgentc.exe] Checking partition at offset 114889326592, partition number: 5
2018-04-21 09:35:43, Info [ReAgentc.exe] skip GPT Partition which type is not PARTITION_MSFT_RECOVERY_GUID
2018-04-21 09:35:43, Info [ReAgentc.exe] Checking partition at offset 594542592, partition number: 4
2018-04-21 09:35:43, Info [ReAgentc.exe] find OS partition
2018-04-21 09:35:43, Info [ReAgentc.exe] Checking partition at offset 1048576, partition number: 1
2018-04-21 09:35:43, Info [ReAgentc.exe] MeetPartitionRequirements Partition details: {Offset: 1048576, Free space: 40579072, Total space: 471855104}
2018-04-21 09:35:43, Info [ReAgentc.exe] MeetPartitionRequirements WinRE WIM size: 416713175
2018-04-21 09:35:43, Info [ReAgentc.exe] MeetPartitionRequirements Required free space: 52428800
2018-04-21 09:35:43, Warning [ReAgentc.exe] MeetPartitionRequirements Not enough free space req = 52428800 avail = 40579072 offset = 1048576
2018-04-21 09:35:43, Info [ReAgentc.exe] skip partition because it does not meet WinRE requirements
2018-04-21 09:35:43, Info [ReAgentc.exe] Complete looping through each partition
2018-04-21 09:35:43, Info [ReAgentc.exe] ----Search target partition option #1: try existing WinRE partition
2018-04-21 09:35:43, Info [ReAgentc.exe] ----Search target partition option #2: try first recovery partition
2018-04-21 09:35:43, Info [ReAgentc.exe] ----Search target partition option #3: try system partition for MBR
2018-04-21 09:35:43, Info [ReAgentc.exe] ----Search target partition option #4: try new recovery partition if allowed
2018-04-21 09:35:43, Info [ReAgentc.exe] ----Search target partition option #5: try target OS partition
2018-04-21 09:35:43, Info [ReAgentc.exe] MeetPartitionRequirements Partition details: {Offset: 594542592, Free space: 18595831808, Total space: 114294779904}
2018-04-21 09:35:43, Info [ReAgentc.exe] MeetPartitionRequirements WinRE WIM size: 416713175
2018-04-21 09:35:43, Info [ReAgentc.exe] MeetPartitionRequirements Required free space: 469141975
2018-04-21 09:35:43, Info [ReAgentc.exe] Found target partition: use target OS partition, offset: 594542592
2018-04-21 09:35:43, Info [ReAgentc.exe] Exit FindTargetPartition returns with status code: 0x0
2018-04-21 09:35:43, Info [ReAgentc.exe] --Install on target OS step 5: set WinRE settings and restore system to a good state when hitting any errors
2018-04-21 09:35:43, Info [ReAgentc.exe] Enter SetWinRESettings
2018-04-21 09:35:43, Info [ReAgentc.exe] RegLoadKey $OFFLINE$SYSTEM failed. Error: 0x522.
2018-04-21 09:35:43, Info [ReAgentc.exe] Copying WinRE from \\?\GLOBALROOT\device\harddisk0\partition1\Recovery\WindowsRE to staging location on \\?\GLOBALROOT\device\harddisk0\partition4
My WinRE partition is 500MB - looks like it decides there is not enough free space so as it can't repartition it copies WinRE.wim to C and registers it there.
These are the rules:
If the partition is less than 500 MB, it must have at least 50 MB of free space.
If the partition is 500 MB or larger, it must have at least 320 MB of free space.
UEFI/GPT-based hard drive partitions | Microsoft Docs
I tried deleting my recovery partition and recreating it 499MB:
Code:
DISKPART> select disk 0
Disk 0 is now the selected disk.
DISKPART> list partition
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Recovery 449 MB 1024 KB
Partition 2 System 100 MB 451 MB
Partition 3 Reserved 16 MB 551 MB
Partition 4 Primary 106 GB 567 MB
Partition 5 Primary 6144 MB 106 GB
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 R Recovery NTFS Partition 449 MB Healthy
Volume 1 C MacBook NTFS Partition 106 GB Healthy Boot
Volume 2 D ReFS Partition 6144 MB Healthy
Volume 3 FAT32 Partition 100 MB Healthy System
DISKPART>
That didn't work either - same issue - so the free space check in reagentc seems to be bugged (I tried on both 16299 BIOS and 117134.1 UEFI). At least the way it works doesn't conform to documentation as my WinRE.wim is 397MB which leaves more than 50MB of free space it claims is required.
If you have the same cause in your log file then it looks like we both need to shuffle our partitions around and make a bigger recovery.
MS recommend putting recovery after C these days (see here).
Personally I'm going to wait until Spring update and do clean install with recovery 1GB after C. It definitely didn't do this when I clean installed last year - it worked fine.