Earlier this week I got an email from a fellow deployment geek, where he wanted to know how he could enable the local Administrator account on his Windows To Go stick (Windows 8.1 Enterprise). He had created the reference image in MDT 2013 (as you always should), but after running through the Windows To Go creator wizard and trying the USB stick, it run through the normal OOBE wizard, and also had the local administrator disabled. This post shows you how to automate the Windows To Go Setup, as well as some additional tips and tricks for testing and creating the image.
Background info
A Windows To Go stick, the first time you boot it, behaves like any other Windows setup. If you don’t provide an answer file, the setup will stop and prompt you for things. To automate the setup, simply copy an unattend.xml file to the \Windows\System32\Sysprep folder of your USB stick.
Screen from the setup wizard when booting a Windows To Go stick without providing an unattend.xml.
Sample Unattend file for Windows 8.1 x64
Below you find a sample unattend.xml for Windows 8.1 x64 that automates the OOBE setup, enables the local administrator account, uninstall WinRE, and join the Windows To Go stick to the corp.viamonstra.com domain. As mentioned previously in this post: To automate the setup, simply copy an unattend.xml file to the \Windows\System32\Sysprep folder of your USB stick (assign a drive letter first).
Unattend.xml copied to \Windows\System32\Sysprep folder of the USB stick.
Sample Unattend.xml:
EnableAdmin 1 cmd /c net user Administrator /active:yes UnfilterAdministratorToken 2 cmd /c reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v FilterAdministratorToken /t REG_DWORD /d 0 /f MDT_JD VIAMONSTRA P@ssw0rd corp.viamonstra.com OU=Workstations,OU=ViaMonstra,DC=corp,DC=viamonstra,DC=com ViaMonstra ViaMonstra Pacific Standard Time * true 0409:00000409 en-US en-US en-US true true true Work 1 true true true P@ssw0rd True Temp account Temp account Users TempAccount
Take it further - Automate everything with PowerShell
On the Deployment Guys blog you find a great PowerShell script written by Lutz Seidemann (Solution Architect with Microsoft Consulting Services). This script automates the entire build of the Windows To Go stick (in a project you may have to create hundreds), as well as building and injecting an unattend.xml file on the fly. Beautiful!
Here is the post:
Create Windows-To-Go drives in a simple Factory mode
http://blogs.technet.com/b/deploymentguys/archive/2013/02/27/create-windows-to-go-drives-in-a-simple-factory-mode.aspx
More PowerShell for Windows To Go…
Here is another useful post on automating the creation of Windows To Go:
Deploy Windows To Go in Your Organization
http://technet.microsoft.com/en-us/library/jj721578.aspx
Reference images for Windows To Go
Unlike normal reference images, you want to add at least a few generic network and video drivers to a reference image used for Windows To Go. At the very least, add some additional network drivers, because without them, Windows will have a hard time downloading other drivers…
Tips for testing in Hyper-V
If you want to test your Windows To Go stick, and you don’t have a physical machine available, you can add is a pass-through disk in Hyper-V and test it there. If the USB stick doesn’t show, please make sure it’s set to offline in disk manager.
Testing Windows To Go sticks in Hyper-V.
Happy deployment,
/ Johan
More ...