In today’s post, I thought I would share with you some XML that drives some of our dynamic provisioning. The power of dynamic provisioning is found in taking a base image of a Server operating system that has nothing enabled and customizing it using the Windows Automated Installation Kit (WAIK) that is available in SCVMM.
Getting Started with Unattend.XML
The officially supported method of building unattended files for Windows Server 2008 & R2 is using the Windows System Image Manager that is part of the WAIK. I will follow that party line and say this is the method you should go about building your unattended file though I can say that I haven’t followed this “support” method and have used my trusty Visual Studio editor and the WAIK unattended documentation. This should be considered your warning and please don’t punish me if you do this. <grin>
With this said, you could start with this unattended.xml file and build upon it and let me teach you how to do this though, again, it is not the recommended approach.
Get Started: Build your Base Unattended XML
You should open your favorite XML editor and start with this as your base.
- <?xml version=”1.0″ encoding=”utf-8″?>
- <unattend xmlns=”urn:schemas-microsoft-com:unattend”>
- <settings pass=”oobeSystem”>
- <component name=”Microsoft-Windows-Shell-Setup” processorArchitecture=”amd64″ publicKeyToken=”31bf3856ad364e35″ language=”neutral” versionScope=”nonSxS” xmlns:wcm=”http://schemas.microsoft.com/WMIConfig/2002/State”>
This is a basic unattend that will do the following:
- Set your background to 16-bit color
- Set your resolution to 1024×768 with a refresh rate of 60
- Set your organization name to Contoso
- Hides the EULA
- Sets network location to Work
- Sets the automatic settings for Security
- Disables the Windows Machine Out-of-box-Experience
This is a good place to start. The key thing to note is that the only piece of the <component> line that changes is the name=” “ section and the name is easily identifiable through the documentation. Let’s, say for example you wanted to set the proxy settings in your unattended file you would search the documentation and you would find –
You simply copy an existing <component> line and you change the name=” “ to whatever setting you desire and you are off.