(
echo select disk 0
echo clean
echo convert gpt
echo create partition efi size=100
echo format quick fs=fat32 label="System"
echo create partition msr size=16
echo create partition primary
echo shrink minimum=500
echo format quick fs=ntfs label="Windows"
echo create partition primary
echo format quick fs=ntfs label="Recovery"
echo set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
echo gpt attributes=0x8000000000000001
) | diskpart