In today’s blog I am going to explain how you can do an unattended setup of the default Windows 8 Enterprise X64 install.wim to a Surface Pro from a USB drive. Unattended setups are not new but when you are deploying to the Surface Pro (or any other UEFI system) there are some special considerations around disk partitioning and booting from USB.
Step #1: Prepare USB drive
- Locate a 4GB or larger USB flash drive
- Open Diskpart and run the following command
- List disk
- Identify the disk # of the flash drive
- Sel disk X where X is the USB drive(make sure to choose correct one)
- Clean
- Create part primary
- Assign
- Active
- Format FS=FAT32 quick. Note: It must be FAT32
- Exit
- Copy the entire contents of your Windows 8 Enterprise X64 DVD to the USB drive
Note: It is also possible to replace the default install.wim in the sources folder with your own custom install.wim. The image must be prepared using Sysprep with the /generalize and /oobe command line switches
Step #2: Create autounattend.xml
Using Windows System Image Manger create an autounattend.xml and then copy it to the root of the USB flash drive.
Since the Surface Pro is a UEFI system you must create different disk partitioning then a legacy BIOS based computer. I have attached a sample autounattend.xml to the blog that is fully automated and will end with you logged in to the computer as local administrator account. My disk partitioning follows the default configuration. Below shows the different partitions and sizes
Figure 1. Default UEFI disk configuration
If you want to setup for recovery partition scenarios see the Recommended Configuration: System Recovery.
Step #3: Boot from the USB drive
To boot from USB on the Surface Pro you must do the following:
- Press and hold the volume down button
- Press the power button
- When you see the Surface Logo you can let go of the buttons
If it doesn’t boot from the USB drive check the following:
- Make sure you have formatted the drive FAT32
- Try the USB drive in another computer(UEFI and Legacy BIOS) to see if it works
Here’s a link to a sample autounattend.xml file
Hope this helps with your deployments. Stay tuned for more Surface Pro deployment related blogs
Scott McArthur
Senior Support Escalation Engineer
Microsoft Customer Support & Services