(1) Yes, that deletes your Partition 5 & recreates it with the same number 5 & in the same sectors. The reason it comes back into the same sectors is likely that those will be the only unallocated sectors after your delete. If there were unallocated sectors
that preceded them or if the size of the unallocated sectors were much larger than 800/so MB, we'd have to go fishing for more parameters to put onto the Create command. Or you could Exit DiskPart & create it in Disk Management instead. Then come back into
DiskPart for the rest.
Remember to reboot after partition work like that, even though the partition number stays the same.
(2) "I think you’re saying the previous code emptied out part 6 when you moved the one file to part 5."
When I look into the ReagentC.log, it looks like "ReagentC /Disable" either moves or copies WinRE.wim out of the partition & to a "staging area". It seems that might have happened the first time for me -- but the second time (to get things back to the original
partition) it did not happen. WinRE.wim was still in both partitions. No matter which happens to you -- we'll just copy it back to partition 6, if it gets deleted. Nothing else in partition 6 should get deleted. But don't you have an image of it anyhow? And
didn't Slance310 say you could copy back just that partition (if necessary)?
Here was the /Disable I did the second time which looks much the same as the first...
2020-07-27 00:14:19, Info [ReAgentc.exe] -----Executing command line: ReagentC /Disable-----
2020-07-27 00:14:19, Info [ReAgentc.exe] ------------------------------------------------------
2020-07-27 00:14:19, Info [ReAgentc.exe] Enter WinReUnInstall
2020-07-27 00:14:19, Info [ReAgentc.exe] Update enhanced config info is enabled.
2020-07-27 00:14:19, Info [ReAgentc.exe] WinRE is installed
2020-07-27 00:14:19, Info [ReAgentc.exe] winreCopyWIMBack moved WIM file from \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE\ to \?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE\ successfully!
2020-07-27 00:14:19, Info [ReAgentc.exe] WinRE uninstall step 1 succeeded: copy WIM file back to its staging location
2020-07-27 00:14:19, Info [ReAgentc.exe] WinRE uninstall step 2 succeeded: update agent config for BCD id, install state, schedule operation.
2020-07-27 00:14:19, Info [ReAgentc.exe] The current Recovery BCD entry points to \Device\HarddiskVolume4[\Recovery\WindowsRE\Winre.wim]
2020-07-27 00:14:19, Info [ReAgentc.exe] The WIM file being unregistered is \Device\HarddiskVolume4[\Recovery\WindowsRE\Winre.wim]
2020-07-27 00:14:19, Info [ReAgentc.exe] Paths are the same, clearing Recovery BCD
2020-07-27 00:14:19, Info [ReAgentc.exe] Cleared recovery BCD successfully
2020-07-27 00:14:19, Info [ReAgentc.exe] WinRE uninstall step 3 succeeded: unregister winre.wim from recovery BCD.
2020-07-27 00:14:19, Info [ReAgentc.exe] WinRE uninstall step 4 succeeded: remove recovery related sequence from BCD.
2020-07-27 00:14:19, Info [ReAgentc.exe] WinRE uninstall step 5 completed with return value TRUE: remove validation task.
2020-07-27 00:14:19, Info [ReAgentc.exe] Exit WinReUnInstall returns 1 with last error: 0x0
2020-07-27 00:14:19, Info [ReAgentc.exe] ------------------------------------------------------
2020-07-27 00:14:19, Info [ReAgentc.exe] -----Exiting command line: ReagentC /Disable, Error: 0-----
2020-07-27 00:14:19, Info [ReAgentc.exe] ------------------------------------------------------
It says the word "move" & it says the word "copy" -- but WinRE.wim was still in the partition & not in the "staging area" which I believe to be "C:\Windows\System32\Recovery". But don't worry, if yours gets moved, we'll move it back. And Partition 5 will
remain your new Active Recovery partition.
Edit: Well, sheesh, that "winreCopyWIMBack" line did look different enough last time to account for the different outcome...
2020-07-24 03:34:11, Info [ReAgentc.exe] winreCopyWIMBack moved WIM file from \?\GLOBALROOT\device\harddisk0\partition5\Recovery\WindowsRE\ to C:\WINDOWS\system32\Recovery\Winre.wim successfully!
So - it looks like yours will be moved out, but we'll simply move it back.