Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rem == These commands are used with DiskPart to
- rem create five partitions
- rem for a UEFI/GPT-based PC.
- rem Adjust the partition sizes to fill the drive
- rem as necessary. ==
- rem WinNTSetup_Boot=S:
- rem WinNTSetup_Install=W:
- select disk 0
- clean
- convert gpt
- rem == 1. Windows RE tools partition ===============
- create partition primary size=980
- format quick fs=ntfs label="Windows RE tools"
- assign letter="T"
- set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
- gpt attributes=0x8000000000000001
- rem == 2. System partition =========================
- create partition efi size=260
- rem ** NOTE: For Advanced Format 4Kn drives,
- rem change this value to size = 260 **
- format quick fs=fat32 label="System"
- assign letter="S"
- rem == 3. Microsoft Reserved (MSR) partition =======
- create partition msr size=128
- rem == 4. Windows partition ========================
- rem == a. Create the Windows partition ==========
- rem create partition primary
- rem == b. Create space for the recovery image ===
- rem shrink minimum=15000
- rem ** NOTE: Update this size to match the size
- rem of the recovery image **
- rem == c. Prepare the Windows partition =========
- format quick fs=ntfs label="Windows"
- assign letter="W"
- rem === 5. Recovery image partition ================
- rem create partition primary
- rem format quick fs=ntfs label="Recovery image"
- rem assign letter="R"
- rem set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
- rem gpt attributes=0x8000000000000001
- list volume
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement