[This is Part 2 of 7]
Check out other parts:
Working on the ADK Machine
The first thing that I do when performing any type of Windows Images, is to take my time preparing an isolated environment with all the tools I want. In this section, we will be working on the ADK machine.
ADK machine is a non-domain joined machine without any security baselines or antivirus or security solutions installed on it. Why this is important? This is not a requirement from Microsoft, but it is the way that I find very productive and reduce the possibility of errors. The need to have the machine without antivirus, can prevent offline image servicing errors. When the machine is not joined to the domain, then it will reduce the possibility of a restriction from GPO that can interfere with DISM commands that heavily access the file system and do complex stuff. After long time doing imaging, I found this way working well for me.
ADK machine is a Windows 8.1 machine, not joined to the domain, does not have any security products or antivirus installed, and has Microsoft ADK installed on it, hence the name ADK machine.
ADK stands for Assessment and Deployment Kit. Those are tools that can help you to deploy Windows in unattended way. Make sure you install the ADK version that supports Windows 8.1. Make sure to download the ADK and save the installation files in your file server as you may need to reinstall it.
Tip: I usually use a virtual machine for the ADK machine. I install Windows 8.1 on it and ADK for Windows 8.1, and I take a snapshot immediately after that with the name (ADK machine clean). You will find this handy when troubleshooting offline image servicing and the need to revert back to clean ADK machine state.
Prepare the ADK Machine
I prefer to have a virtual machine with 4 GB RAM (2 GB is possible), normal processing power and one system drive c:\. The C drive should be big enough to hold all imaging operations, so make sure you have at least 60 GB drive size.
Create the following folders on the C drive of the ADK machine:
- Software\Windows 8.1 Installation
Get your hands on the Windows 8.1 installation files, and place them under C:\Software\Windows 8.1 Installation folder on the ADK Machine.
Install Windows ADK for Windows 8.1 on the ADK Machine
Note: ADK Portal: (http://www.microsoft.com/en-us/download/confirmation.aspx?id=39982)
When you go to Microsoft portal to download the ADK for Windows 8.1, and you click Download, then a 1.402 MB get downloaded to your machine called (adksetup.exe). You have to run this adksetup.exe. When you do that, you will have two options:
I recommend highly to choose the second option (Download), so you will have the installation files offline. Once the download is completed, you can run it and pick the following components to install:
- Deployment Tools
- Windows PreInstallation Environment (Windows PE)
Now, if you go to the start screen, you can see the ADK tiles are available. We will be using two of the ADK tools:
- Windows System Image Manager (SIM)
- Deployment and Imaging Tools Environment CMD
I highly recommend here to take a snapshot on the ADK machine after you have installed ADK, name the snapshot something like (ADK machine clean).
Create Answer File
- We are still in the ADK machine.
- Now go to Start > Windows System image Manager.
- In the Windows System Image Manager window, right click the (Windows Image) sub window and click (Select Windows Image) , browse to:
C:\Software\Windows 8.1 Installation\Sources\install.wim
- You will get a warning that a catalog need to be created, click OK.
- Now, under the “Answer File” window, right click and choose “New Answer File”.
- Once done, this will show a template for a new answer file.
- Now as you can notice, you have three important windows:
- Windows Image Window: contains settings that you can pick from and add to the answer file.
- Answer File Window: contains an answer file to be populated with settings.
- Properties Window: contains the sub settings for a highlighted setting in the Answer File Window.
- If interested, checkup the below link for information about all settings available under the “Windows Image” window.
- I have configured many settings in the answer file, so I will show you how to configure one setting with screenshots, and you will get the idea, then I will list the settings that I have added and you can do the same.
- So let me show you now how to add a setting to the answer file:
- In the “Windows Image” window, expand “Components” and search for “….Microsoft-Windows-Shell-Setup_……._neutral”. Right click the setting and click “Add setting to Pass 4 specialize”. This simply means that we are adding a setting that will specialize the image.
- Now look at the “Answer File” window, and expand “4 specialize” folder, and you can see the setting that we have added in the previous step. Click on it, and notice the “Properties” window at the right. Click “Copy Profile” in the “Properties” window and choose “true”, and also in the “TimeZone” setting, write down the time zone that you wish. In order to learn how to type the correct format of the time zone, check the URL mentioned previously.
Now that you know how to add settings to, here is the settings I have added:
1. “Microsoft-Windows-Shell-Setup”\pass: specialize
a. CopyProfile = true
b. TimeZone = China Standard Time
2. “Microsoft-Windows-International-Core”\pass: “oobeSystem”
a. InputLocale: en-us
b. SystemLocale: en-us
c. UILanguage: en-us
d. UserLocale: en-us
e. UILanguageFallback: en-us
- RegisteredOrganization: Contoso International
- RegisteredOwner: Contoso International
- SystemDefaultBackgroundColor: 1
Tips: Let me explain couple of those settings:
- CopyProfile: the most important setting, this will give us the chance to customize the profile of each user using the image.
- HideEULAPage: this will hide the accept license agreement
- HideOnlineAccountScreens: this will remove the option to log on using Microsoft account during installation wizard.
- SystemDefaultBackgroundColor: This setting simply set the default color for the start screen background. Refer here for the numeric values for colors. Those values are not the same for Windows 8 and Windows 8.1. Check the link below for more info about background color:
The result XML file will look like this:
<?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <settings pass="specialize"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CopyProfile>true</CopyProfile> <TimeZone>Jordan Standard Time</TimeZone> </component> </settings> <settings pass="oobeSystem"> <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <InputLocale>en-us</InputLocale> <SystemLocale>en-us</SystemLocale> <UILanguage>en-us</UILanguage> <UILanguageFallback>en-us</UILanguageFallback> <UserLocale>en-us</UserLocale> </component> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <OOBE> <HideEULAPage>true</HideEULAPage> <HideOnlineAccountScreens>true</HideOnlineAccountScreens> <NetworkLocation>Work</NetworkLocation> <ProtectYourPC>1</ProtectYourPC> <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> </OOBE> <VisualEffects> <SystemDefaultBackgroundColor>1</SystemDefaultBackgroundColor> </VisualEffects> <RegisteredOwner>Aramex International</RegisteredOwner> <RegisteredOrganization>Aramex International</RegisteredOrganization> </component> </settings> <cpi:offlineImage cpi:source="wim:c:/users/claudea/desktop/install.wim#Windows 8.1 Enterprise" xmlns:cpi="urn:schemas-microsoft-com:cpi" /> </unattend>
Finally, after adding all those settings to the answer file, go to Tools > Validate Answer File. Make sure you do not have errors, and then save the answer file as CopyProfileunattend.xml.
Check out my YouTube Windows 8 Advertisement 2 minute Video :