
# Mount iso $ISOMounted = Mount -DiskImage -ImagePath $ISOFile -StorageType ISO -PassThru # Driver letter $ISODriveLetter = ( $ISOMounted | Get -Volume ).DriveLetter # Create partition primary and format to FAT32 $Volume = $USBDrive | New -Partition -UseMaximumSize -AssignDriveLetter | Format -Volume -FileSystem FAT32 -NewFileSystemLabel WS2019 Get -Disk | Where BusType -eq "USB" # Get the right USB Drive (You will need to change the FriendlyName) $USBDrive = Get -Disk | Where FriendlyName -eq "Kingston DT Workspace" # Replace the Friendly Name to clean the USB Drive (THIS WILL REMOVE EVERYTHING) $USBDrive | Clear -Disk -RemoveData -Confirm: $true -PassThru # Convert Disk to GPT $USBDrive | Set -Disk -PartitionStyle GPT # Define Path to the Windows Server 2019 ISO $ISOFile = "C:\Temp\WindowsServer2019.iso" # Get the USB Drive you want to use, copy the friendly name So backup everything before you run through the PowerShell. REMINDER: The following commands will wipe the USB Drive completely. You will need to change the path of the Windows Server 2019 ISO, and you will need to replace the USB Friendly Name in the script. Open a PowerShell using the Run as Administrator option. First, plug in your USB drive to your computer.

The at least an 8GB USB drive has to be formatted in FAT32.To create the USB drive to install Windows Server 2019 on a UEFI (GPT system, you do the following steps:

Windows Server 2019 USB Thumb Drive for UEFI (GPT) systems

Here is how you create a USB Drive for a Windows Server 2019 installation.

Depending on your system you will need it to install it on a BIOS system or a UEFI based system, which is slightly different since UEFI will use GPT disks and BIOS will use an MBR disk. This blog post will not use any third-party tools it only uses built-in tools that you can find on Windows 10 or Windows Server. This blog post covers how you can create a bootable USB media drive to install Windows Server 2019 on a physical server.
