Diskpart Windows 10 Install

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