Microsoft

Windows ISO Images

Diskpart

Once Windows Setup is loaded, press Shirt + F10 keys at the first setup screen. A Command Prompt window will be opened.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# For Win7/8
$ diskpart
DISKPART> list disk
DISKPART> select disk 0
DISKPART> clean
DISKPART> create partition primary size = 82020
DISKPART> active
DISKPART> format quick
DISKPART> create partition extended
DISKPART> create partition logical size = 153700
DISKPART> format quick
DISKPART> create partition logical size = 307300
DISKPART> format quick
DISKPART> create partition logical
DISKPART> format quick
DISKPART> exit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# For Win10/11
$ diskpart
DISKPART> list disk
DISKPART> select disk 0
DISKPART> clean
DISKPART> convert gpt
DISKPART> create partition msr size = 512
DISKPART> create partition primary size = 82020
DISKPART> format quick
DISKPART> create partition primary size = 153700
DISKPART> format quick
DISKPART> create partition primary size = 307300
DISKPART> format quick
DISKPART> create partition primary
DISKPART> format quick
DISKPART> exit

Create a Bootable Drive

  1. Insert a USB flash drive into a running computer.

  2. Open a Command Prompt window as an administrator.

  3. Type diskpart.

  4. In the new command line window that opens, to determine the USB flash drive number or drive letter, at the command prompt, type list disk, and then click ENTER. The list disk command displays all the disks on the computer. Note the drive number or drive letter of the USB flash drive.

  5. At the command prompt, type select disk <X>, where X is the drive number or drive letter of the USB flash drive, and then click ENTER.

  6. Type clean, and the click ENTER. This command deletes all data from the USB flash drive.

  7. To create a new primary partition on the USB flash drive, type create partition primary, and then click ENTER.

  8. To select the partition that you just created, type select partition 1, and then click ENTER.

  9. To format the partition, type format fs=ntfs quick, and then click ENTER.

  10. Type active, and then click ENTER.

  11. Type exit, and then click ENTER.

  12. When you finish preparing your custom image, save it to the root of the USB flash drive.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
$ diskpart
DISKPART> list disk
DISKPART> select disk 1
DISKPART> clean
DISKPART> create partition primary
DISKPART> list partition
DISKPART> active
DISKPART> format fs=ntfs quick
DISKPART> exit

# Mount the ISO image (G:) and then move its content to your USB drive (F:)
G:\>cd boot
G:\boot>bootsect /nt60 F:
G:\boot>xcopy G:\*.* F:\ \E \F \H