- Author: Brooks Peppin
- Email: email@example.com
- Date Created: 1/16/2019
- Tested On: Windows 10 1709, 1803, 1809 Setup Media
This script creates automated Windows 10 setup on bootable USB media. It takes any Windows 10 ISO, formats USB to support UEFI NTFS booting, and places autounattend.xml in the root of the drive in order to make it a zero touch setup process.
- 8 GB or larger USB drive (USB 3.0 recommended)
- Windows 10 Setup Media in ISO format
- Script must be run on Windows 10 1803 or newer in order for Windows Explorer to see multiple partitions on the USB drive
- Target device must boot UEFI
Ensure you are on Windows 10 1803 or newer running this script
- Download Windows 10 media (ISO) from MSDN or Microsoft Volume License site.
- Mount ISO in Windows Explorer.
- Run script (right click powershell script and click "run with powershell"). This script will self-elevate as administrator.
- Follow prompts on wizard to input mounted ISO drive letter and drive number of USB.
- Place autounattend.xml in root of the "UBS-Boot" partition*
- Once complete, put usb into laptop (or VM).
- Boot device and hit correct key to bring up boot menu (F12 on Dell machines, ESC on VMs, other devices might be different).
- System will boot and automatically format the internal drive and install Windows 10 Professional.
*Note: Windows 10 media comes with many different SKUs (Education, Enterprise, etc). If you would like Windows 10 Setup to install a different version, edit the autounattend.xml file in the root of the USB drive and update the name of the SKU you desire in the "ImageInstall" node in the XML. For example, to change from Win10 Pro to Win10 Enterprise you would update the "Value" key to be: Windows 10 Enterprise