Create Windows (UEFI) Bootable USB Stick via Diskpart

Create Windows (UEFI) Bootable USB Stick via Diskpart

Create Windows (UEFI) Bootable USB Stick via Diskpart

Geeks - To create a Windows bootable USB stick using Diskpart, follow these steps:


Plug in your USB stick to your computer.


Open a command prompt as an administrator. To do this, press the Windows key + X on your keyboard, and then select "Command Prompt (Admin)" from the menu.


Type the following command at the prompt, and then press Enter:


Copy code

diskpart

Once you're in the Diskpart utility, type the following commands, pressing Enter after each one:

Copy code

list disk

select disk [disk number]

clean

create partition primary

select partition 1

active

format fs=fat32 quick

assign

exit

In the command prompt, type the following command, replacing "[ISO file]" with the path to your Windows ISO file:

Copy code

xcopy [ISO file] [USB drive letter]:\ /e /f /h

Once the copying is finished, type the following command at the prompt, replacing "[USB drive letter]" with the drive letter of your USB stick:

Copy code

cd [USB drive letter]:\efi\boot

Finally, type the following command to create a bootable USB stick:

Copy code

bootsect /nt60 [USB drive letter]:

Once the process is complete, you can safely remove the USB stick and use it to boot your computer.

Note: If you are trying to create a bootable USB stick for a different operating system, you may need to use different commands or a different utility to create the bootable USB stick.





Previous Post Next Post