Create Windows Installation USB
Get a Windows ISO
Use the Microsoft Windows media creation tool to obtain a copy of the retail version of the windows installation ISO. The ISO contains all versions. It’s best to get the international version, as this contains English (British).
Using the retail version means that it should be possible to change to a volume licensed version of Windows.
Creating Bootable Windows install media
Mount Windows ISO
Mount the Windows ISO which you’re using for creating the Windows USB installation media.
You can do this in modern versions of Windows by double clicking the ISO file
Once the ISO is mounted, it will appear as another drive letter on your machine. Make a note of the drive letter.
Partition USB stick
Whilst only 8GB is required for creating the bootable USB stick, it’s better to use a USB stick with 32GB or 64GB, as this will make management easier (because you can store multiple WIMs).
The following will wipe the contents of the USB stick.
- Open Command Prompt as Administrator
-
Run the utility DISKPART
DISKPART
-
Show a list of the disks attached to the system
list disk
-
Based upon the output of the previous command you now know the disk number of your USB drive, so you can select it
select disk 1
-
Clean the drive
clean
-
Create a primary partition
create partition primary
-
Once the partition has been created, list the partitions and select the correct partition
list partition
-
Type the following command to activate the partition
active
-
Format the USB drive as NTFS
format fs=ntfs label="BootableUSB" QUICK OVERRIDE
Copy boot sector and files
With the ISO mounted, and the USB stick plugged into the laptopBack in DISKPART, list the volumes to find the drive letter of the ISO which you just mounted
- Open Command Prompt as Administrator (not Powershell)
-
Edit the following and paste into the command prompt to set the correct drive letters for the ISO and the USB
REM Change variable to drive letter of mounted ISO SET ISO=E: REM Change variable to drive letter of USB SET USB=D:
-
Paste the following into the command prompt to create the boot sector on the USB drive, and also copy the files from the ISO to the USB. This can take some time.
%ISO% cd boot bootsect /nt60 %USB% xcopy %ISO%\*.* %USB%\ /E /F /H
- Wait until the files finish copying; this can take some time
Enabling Edition Selection
Windows bootable media can contain multiple editions of Windows. On OEM hardware the edition selection menu can be skipped during installation.
To make the edition selection menu appear during Windows installation, use notepad to create a file called ‘ei.cfg’ with the following contents, and save this into the sources\ folder on the USB stick
[Channel]
Retail
[VL]
0
It’s now possible to build a client machine using the USB stick. We build client machines as Windows 11 Pro.