Diskpart Windows — 10 Install
When using diskpart in a Windows 10 installation (e.g., via MDT or manual):
$scriptPath = "$env:TEMP\diskpart_win10.txt" $diskpartScript | Out-File -FilePath $scriptPath -Encoding ascii
Write-Host "nRunning diskpart..." -ForegroundColor Cyan Start-Process "diskpart.exe" -ArgumentList "/s "$scriptPath`"" -Wait -NoNewWindow diskpart windows 10 install
Write-Host "`n✅ Disk $diskNumber prepared successfully!" -ForegroundColor Green Write-Host " EFI partition: S: (FAT32)" Write-Host " Windows partition: W: (NTFS)"
Replace X with your actual disk number (e.g., 0): When using diskpart in a Windows 10 installation (e
select disk X
Windows will confirm: "Disk X is now the selected disk."
If the EFI partition is not created as FAT32 or the active flag is missing on MBR, Windows will install but fail to boot with error 0xc000000e (missing boot device). Recovery requires booting into WinPE again and manually rebuilding the BCD store via bootrec /rebuildbcd. Replace X with your actual disk number (e
AutoPart - Windows 10 Installation Disk Prep Tool


For an English version, copy the text below, put in into a .txt-file, call in "English" and copy it into the directory where you have placed the DB-editor.