https://pureinfotech.com/create-bootable-windows-11-usb-install-media/
Use Command Prompt to create a bootable USB to install Windows 11.
Caution: diskpart clean deletes everything on the selected disk. Run Command Prompt as Administrator. The select disk 1 value is an example — replace 1 with the flash drive's number from list disk.
Download the ISO
- Open Microsoft Support website.
- Under the "Download Windows 11 Disk Image (ISO)" section, select the Windows 11 option.
- Click the Download button.
- Select the installation language.
- Click the Confirm button.
- Click the Download button to save the Windows 11 ISO file on the device.
Prepare the USB
Open Start. Search for Command Prompt, right-click the top result, and select Run as Administrator.
Open Diskpart:
diskpartDetermine the USB flash drive:
list diskSelect the storage (1 is an example):
select disk 1Delete everything from the USB flash drive:
cleanCreate a primary partition:
create partition primarySelect the new partition:
select partition 1Make the USB flash drive bootable:
format FS=FAT32 quickAssign a volume and a drive letter (X is any available letter):
assign letter=XQuit Diskpart:
exitMount the ISO and copy files
Mount the Windows 11 ISO (update the path):
PowerShell Mount-DiskImage -ImagePath "C:\path\to\Windows11.iso"Launch Diskpart again:
diskpartDetermine the drive letter for the mounted Windows 11 ISO file:
list volumeExit Diskpart:
exitAccess the Windows 11 ISO file (E: is an example):
E:Enter the boot folder:
cd bootUpdate the volume boot code for the USB flash drive:
bootsect /nt60 X:Copy all the Windows 11 installation files to the USB flash drive. Change E and X to the ISO and USB letters:
xcopy E:\*.* X:\ /E /F /HAfter these steps, the bootable flash drive can install Windows 11 on devices using UEFI.

