###CMD###
###Disable the existing Windows recovery partition###
reagentc /disable
###Diskpart###
list disk
###Change disk number to correct disk###
select disk 0
list partition
###Change partition number to the recovery one###
select partition 4
delete partition override
###Disk Management - expand disk leaving 1024 MB available for the new recovery partition###
###Create New Simple Volume for Recovery, NTFS, no drive letter###
###Diskpart###
list partition
###Change partition number to match the new recovery partition###
select partition 4
###For GPT disks###
set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
gpt attributes=0x8000000000000001
###For MBR disks###
run set id=27
###Re-enable the recovery partition###
reagentc /enable