PS C:\1> set-executionpolicy remotesigned
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
PS C:\1> .\1.ps1
cmdlet 1.ps1 at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
BackupFolder: C:\2
Start time: 03/07/2024 21:22:17
Examining the system...
Windows RE status: Enabled
Windows RE location: \?\GLOBALROOT\device\harddisk3\partition4\Recovery\WindowsRE
System directory: C:\Windows\system32
ReAgent xml: C:\Windows\system32\Recovery\ReAgent.xml
Collecting OS and WinRE partition info...
OS Disk: 3
OS Partition: 3
WinRE Partition: 4
Disk PartitionStyle: GPT
WinRE partition size info
Partition capacity: 1049620480
Partition free space: 549122048
WinRE Partition Offset: 106656956416
WinRE Partition Type: Recovery
OS partition size: 106323587072
OS partition Offset: 332398592
OS partition ends at: 106655985664
WinRE partition starts at: 106656956416
Backup Directory: [C:\2]
Verifying if the WinRE partition needs to be extended or not...
More than 250 MB of free space was detected in the WinRE partition, there is no need to extend the partition
PS C:\1>
(my Recovery partition has already 1001MB -already manually resized it like a month ago by diskpart and other steps from solution provided by micro****
).
But today again get hit by 0x80070643... As stupid and frustrating it look like, but sadly true. So I dig up the internet :P and follow the solution provided here. Script checked it and confirm that the size is enough.
So basically - not needed to change anything.
And yet - still 0x80070643...
SOLUTION !!! For people that already had resized their recovery partition!
"To resolve this error, a user pointed out on Reddit that you can uninstall the older update installed in October 2023 and reinstall it again through this month's push of the KB5001716 update.
To uninstall the KB5001716 update, go into Settings > Apps, and under Apps & features, scroll down until you see the update, click on it, and then click on Uninstall"
After that restart your PC and proceed with update. Works for me on my 2 PC. :)