How to Create a Bootable Windows 10/11 USB using PowerShell (and DiskPart).
How to Create a Bootable Windows 10/11 USB using PowerShell (and DiskPart).
You’ll Need:
A Windows 10/11 ISO (official from Microsoft)
A USB drive (at least 8GB)
Administrator privileges
Step 1: Identify Your USB Drive
A. Open PowerShell as Administrator
Right-click Start → Windows PowerShell (Admin)
Win-key plus x keyboard button
B. Start DiskPart
diskpart
C. List all disks
list disk
Find your USB (look at size). For example, if your USB is Disk 1
D. Select the USB disk
select disk 1
E. Clean the USB (⚠️ Destroys all data on it)
clean
F. Create and format partition
create partition primary
select partition 1
format fs=ntfs quick
active
assign
exit
Step 2: Mount the ISO
Double-click your Windows ISO (or right-click → Mount)
This will create a virtual DVD drive (e.g., D:)
Step 3: Copy the ISO Files to USB
In PowerShell (still as admin):
xcopy D:\* E:\ /E /F /H
D: → Your mounted ISO drive
E: → Your USB drive (adjust accordingly)
Now your USB is bootable, clean, and fully under your control — no hidden tricks, no extra installers.
🔒 (Optional but Recommended) — Verify ISO SHA256
If you want to be 100% sure your ISO wasn’t tampered with:
Get-FileHash C:\Path\To\Win10.iso -Algorithm SHA256
Then compare it with the checksum from Microsoft: → Official SHA256 hashes