Diskpart Windows 10 Install
during a Windows 10 installation, you can access the command-line utility by pressing Shift + F10 at the initial setup screen
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. diskpart windows 10 install
Example 2: Deleting a Partition
Step 4: Launch DiskPart
At the X:\Sources> prompt, type:
Confirm
Write-Host "`n⚠️ WARNING: All data on disk $diskNumber will be permanently deleted. ⚠️" -ForegroundColor Red $confirm = Read-Host "Type 'YES' to proceed" if ($confirm -ne "YES") Write-Host "Operation cancelled." -ForegroundColor Red exit during a Windows 10 installation, you can access
list disk: Lists all disks on the system.select disk <number>: Selects a disk to work with.list partition: Lists all partitions on the selected disk.create partition primary: Creates a new primary partition on the selected disk.format fs=ntfs quick: Formats the selected partition with NTFS file system.assign letter=<letter>: Assigns a drive letter to the selected partition.