rem == CreatePartitions-UEFI.txt == rem == These commands are used with DiskPart to rem create four partitions rem for a UEFI/GPT-based PC. rem Adjust the partition sizes to fill the drive rem as necessary. == select disk 3 clean convert gpt rem === 1. Recovery partition ================ create part primary size=450 format fs=fat32 quick assign letter=R set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac" gpt attributes=0x8000000000000001 rem == 2. System partition ========================= create partition efi size=100 format quick fs=fat32 label="System" assign letter="S" rem == 3. Microsoft Reserved (MSR) partition ======= create partition msr size=16 rem == 4. Windows partition ======================== rem == a. Create the Windows partition ========== create partition primary format quick fs=ntfs label="Windows" assign letter="W" list volume exit