======Windows - Bootable USB isntaller=====
// Tested with Windows Server 2016. //
This lists the quick steps to create a bootable Windows installer on USB disk without using extra tools.
Follow [[https://www.thomasmaurer.ch/2016/10/create-a-usb-stick-for-windows-server-2016-installation/|Thomas Maurer - Create a USB Stick for Windows Server 2016 Installation]].
In short:
- Start an elevated command prompt:
- Start diskpart and use it to:
- List the disks.
- Select the USB disk.
- // In this example the USB disk is on disk 1, please check your output of list disk to determine which number the USB disk is on before proceding with select disk. //
- Clean the USB disk.
- Create one primary partition.
- Format that partition with FAT32.
- Mark the partition active (bootable).
- Assign the USB disk a drive letter (K: in this example).
- // The below commands assume the USB disk is disk 1, with the only other disk being 0 the OS disk. //
diskpart
list disk
select disk 1
clean
create partition primary
format fs=FAT32 quick
active
assign letter=k
exit
- Mount the Windows server 2016 DVD (i.e. double-click the ISO in explorer to have it mounted on for example D:\ as in this example).
- Copy the contents of the ISO to the USB disk.
- Skip install.wim as we need to split it to overcome the FAT32 max 4 GB per file limit.
- Skip autorun.inf to prevent an on-access anti-virus scanner from interfering.robocopy d:\ k:\ /E /XF install.wim /XF autorun.inf
- Split the install.wim in max 4 GB pieces and write those pieces to the USB disk:dism /Split-Image /ImageFile:D:\sources\install.wim /SWMFile:k:\sources\install.swm /FileSize:4096