Create Bootable Windows Server 2016, 2019, 2022, Windows 10, 11 USB Thumb Drive for Installing OS – no .exe required BIOS & UEFI

Direct answer

These procedures were written and tested using Windows Server 2016 but will work on any version of Windows Server or Windows Desktop version 8 or above. They should work on prior versions of Windows 10, Windows 8, Windows Server 2012, Windows 7 and Windows Vista and Windows Server 2008 or Windows Server 2008 R2. Note: […]

These procedures were written and tested using Windows Server 2016 but will work on any version of Windows Server or Windows Desktop version 8 or above.  They should work on prior versions of Windows 10, Windows 8, Windows Server 2012, Windows 7 and Windows Vista and Windows Server 2008 or Windows Server 2008 R2.  Note: this post DOES NOT use any downloadable .EXE.  This is the long way.  If you want to create a bootable USB with Windows 10 using the executable, see: Download Windows 10 and Create bootable USB Thumb Drive for Booting to Installation PLUS Data Migration.  The USB drive I created with these instructions was used to successfully install Windows Server 2016 TP5 and 2016 on bare metal with only one internal drive which was wiped during the installation. I have also fully tested Windows Server 2019.

If you do not have the media, you will need to download.  See https://www.microsoft.com/en-us/evalcenter/evaluate-windows-server-technical-preview for the Technical Preview of Windows Server 2016.  You could also download from MSDN.MICROSOFT.COM or other subscription service.

1) Double-click the ISO file to mount it (or mount the ISO) and make note of the drive letter.  In my case it is drive I:

2) Put in the USB Thumb Drive Key in the computer and make note of the drive letter and the size of the disk.  In my case it is D: and 32gb  You will likely need at least an 8gb drive as the bits will require 4.9gb.

[

image

](/wp-content/uploads/2016/05/image.png)

  1. You need to run an elevated command prompt. Start | type cmd | Right-click cmd (top of menu) | Run as Administrator  (accept the elevation request)

URGENT NOTE:  The following commands will completely wipe out your disk without warning so make sure you select the proper disk.  I strongly recommend you have a good backup of all drives attached to the machine before running.  I also recommend you disconnect all external drives to limit mistakes.


NOTE: It is best to use a USB 2 drive because some hardware cannot boot to USB 3.

4) Next you will run Diskpart to prepare the disk for the OS {question mark “?” below should be replaced with the disk number of the drive you are using}

diskpart

list disk

select disk ?

list disk

— CAUTION: the next line is the one that wipes the drive

clean

create partition primary

select partition 1

active

“The selected disk is not a fixed MBR disk. The ACTIVE command can only be used on fixed MBR disks.”

The following command will defer depending on the configuration of the hardware you will be installing the OS on.  If you are not sure, you can use the CTRL key to go into BIOS/SETUP to determine. UEFI is more secure.

format fs=ntfs quick label=”2016TP5”

format fs=fat32 quick label=”2016TP5”

format fs=ntfs label=”WinSvr2019”

exit

5) Now we need to copy the boot sector.  You should still be in the command prompt window.  Run the following commands to change to the right drive and folder:

Note: replace the I: below with your mounted ISO drive letter

Replace e: in the below command with the drive letter of your USB drive

bootsect /nt60 e:

Target volumes will be updated with BOOTMGR compatible bootcode.  This disk can also be used to fix boot loader on a machine that is having problems.

You will get a message: Bootcode was successfully updated on all targeted volumes.

If you get the following error or similar: Updated NTFS/Fat32 filesystem bootcode.  The update may be unreliable since the volume could not be locked during the update: Access is denied.

6) Now we just need to copy files… (You should still be in the DOS Command window)

xcopy I:\. D:\ /E /H /F

  1. Once the copy finishes, you can boot to the USB drive and it will be treated like an attached DVD.  Remember, you may have to tell your computer to boot to the USB device which is often done from <F12> or other CTRL key to boot options in your BIOS / UEFI settings.

Diskpart Command-Line Utility Syntax and Description

Dan Stolts

Founder and Chief AI Officer of Just In Time AI, with an IT career that began in 1988 -- nearly four decades of experience. Over a decade of that career went into building ITProGuru into a 250,000-uniques/mo IT-community resource, and he now applies the same teach-first approach to AI systems that run real businesses. Full profile →