When you were create a USB media for PCs, notebooks and servers which were using BIOS you could use several tools to do this. Now most of the tools do not really create a USB media drive which can be used to boot and install Windows or Windows Server on a UEFI based system such a new servers and for example the Surface Pro line. But it is very simple to do this now, just follow this steps:
- The USB drive has to be formatted in FAT32
- The USB needs to be GPT and not MBR
- Copy all files from the ISO to the USB drive
PowerShell to create a Windows Server USB drive
This is it, and here is how you do it:
First plugin your USB drive to your computer. The USB drive should be bigger than 4GB.
Open a CMD prompt or PowerShell using the Run as Administrator option and open diskpart. Now you can do list all this by using
list disk
Select the USB disk, in my case this was disk 1
select disk 1
Clean the disk. Be careful this will remove all files and partitions on the USB media.
clean
Now convert it to GPT
convert gpt
Create a new primary partition. But make sure the partition is not greater than 16GB otherwise it can be formatted with FAT32.
create partition primary # If your USB drive is bigger than 16GB use the following command create partition primary size=16000
Format the partition with FAT32
format fs=FAT32 quick
Assign a drive letter to the volume
assign letter=k
now you can exit the diskpart and copy all files from the Windows or Windows Server to the USB drive and boot it. This works with Windows 8, Windows 8.1, Windows 10, Windows Server 2012, Windows Server 2012 R2 and Windows Server 2016 or even Hyper-V Server in the same editions.
Tags: BIOS, Boot, FAT32, gpt, iso, MBR, Microsoft, UEFI, USB, USB media, Windows, Windows 10, Windows 8, Windows 8.1, Windows Server, Windows Server 2012 R2, Windows Server 2016 Last modified: April 25, 2019
Windows Server 2016 Technical Preview 4 has a file that’s greater than 4GB, so this won’t work with a fat32 filesystem. Might work if you change it to NTFS, but YMMV.
you can also split a .wim file :) this would be a solution to solve that problem :)
To split the .wim file into parts:
Dism /Split-Image /ImageFile:C:\sources\install.wim /SWMFile:C:\sources\install.swm /FileSize:4700
where:
C:\sources\install.wim is the name and the location of the image file that you want to split.
C:\sources\install.swm is the destination name and the location for the split .swm files. The first split .swm file is named install.swm file. The file names for the next files include numbers, for example, install2.swm file, install3.swm file, and so on.
4700 is the maximum size in MB for each of the split .swm files to be created. But Use something smaller than 4000, I used 1700 when i split my Server 2016 install.wim file into parts