In this project, we will be preparing a USB flash drive for WinPE. The USB will be used to image systems using WinPE, the USB flash drive will also be able to hold multiple .wim images.
Here is the script in action:
In the clip, I show a clean USB. I then run my function and confirm the format of the USB flash drive. The script then creates two partitions UBS-Boot (1000 MB FAT32) and USB-Source (what's left of USB, in my case 114.55 GB NTFS). I can store Windows image files on the USB-Source partition.