Diskpart Windows 10 Install Today

How to Use DiskPart to Prepare a Drive for a Windows 10 Install

This guide shows how to use DiskPart (built into Windows) to clean and prepare a target drive for a fresh Windows 10 installation. Follow these steps exactly — DiskPart will permanently erase data on the selected disk.

Warning: Back up any important data before proceeding.

Step 9: Create the Partitions

Now, create the structure Windows 10 needs. For UEFI/GPT, you need four partitions:

A) EFI System Partition (100 MB) – Boot loader diskpart windows 10 install

create partition efi size=100
format quick fs=fat32 label="System"
assign letter="S"

B) Microsoft Reserved Partition (MSR - 16 MB) – For recovery tools

create partition msr size=16

C) Primary Partition (The C: drive) – Use the rest of the space. For the example below, we use 100GB; replace with your desired size or leave blank to use all space.

create partition primary size=102400

To use all remaining space: create partition primary How to Use DiskPart to Prepare a Drive

D) Format the Primary Partition

format quick fs=ntfs label="Windows"
assign letter="C"

3. Scripting DiskPart for Automation

Techs can save a text file (setup.txt) with the following:

select disk 0
clean
convert gpt
create partition efi size=100
format quick fs=fat32
create partition msr size=16
create partition primary
format quick fs=ntfs
exit

Then run: diskpart /s setup.txt – automates for multiple machines. B) Microsoft Reserved Partition (MSR - 16 MB)

Step 6: Select Your Disk

Replace X with your actual disk number (e.g., 0):

select disk X

Windows will confirm: "Disk X is now the selected disk."