select part*<WinRE partition index>*
shrink desired=250 minimum=250
create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
gpt attributes =0x8000000000000001
format quick fs=ntfs label=”Windows RE tools”
list vol
exit (from diskpart)
You are providing code that is sure to fail.
select part*<WinRE partition index>*
shrink desired=250 minimum=250
This makes an attempt at SHRINKING the RECOVERY PARTITION.
create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
gpt attributes =0x8000000000000001
This tries to create a partition in space that is NOT THERE as the preceding command has FAILED and NO partition has been DELETED.