Home » Deployment » Sample unattend.xml for use with Sysprep on Windows 7

Sample unattend.xml for use with Sysprep on Windows 7

See Main Article: How to Clone Windows 7 using Norton Ghost 15 and Microsoft Sysprep

Although there are quite anumber of scenarios for the use of Sysprep, I have found it useful to add an answer-file to the preparation process, answer files being generated using the Windows System Image Manager (WSIM). The WSIM with the Windows Automated Installation Kit (WAIK), which can be downloaded here, and see this article to learn how to use WSIM.  Using an answer-file when running Sysprep makes it possible to run Sysprep automatically and set a number of configuration options that otherwise would have to be entered manually while operating Sysprep from its GUI.

The following a sample unattend.xml which works reasonably well for beginners, however as you get more familiar with the Sysprep process you might want to modify this sample file or even create your own unattend.xml file from scratch!

unattend.xml

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" 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>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>1</ProtectYourPC>
                <SkipMachineOOBE>true</SkipMachineOOBE>
                <SkipUserOOBE>true</SkipUserOOBE>
            </OOBE>
            <!-- Uncomment the following section to set display settings -->
         <Display>
            <ColorDepth>32</ColorDepth>
            <DPI>120</DPI>
            <HorizontalResolution>1024</HorizontalResolution>
            <RefreshRate>60</RefreshRate>
            <VerticalResolution>768</VerticalResolution>
         </Display>

            <RegisteredOwner>My.owner</RegisteredOwner>
            <RegisteredOrganization>My.Org</RegisteredOrganization>
            <TimeZone>GMT+1</TimeZone>
        </component>
        <component name="Microsoft-Windows-International-Core" processorArchitecture="x86" 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>da-DK</InputLocale>
            <SystemLocale>da-DK</SystemLocale>
            <UILanguage>da-DK</UILanguage>
            <UserLocale>da-DK</UserLocale>
        </component>
    </settings>
    <settings pass="generalize">
        <component name="Microsoft-Windows-PnpSysprep" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <PersistAllDeviceInstalls>true</PersistAllDeviceInstalls>
        </component>
        <component name="Microsoft-Windows-Security-SPP" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SkipRearm>1</SkipRearm>
        </component>
    </settings>
    <settings pass="specialize">
        <!--
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ProductKey>BVXBC-BW6K8-VDQ26-TB3TW-HHM3T</ProductKey>
            <CopyProfile>false</CopyProfile>
        </component>
        -->
        <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <Identification>
                <JoinWorkgroup>Workgroup</JoinWorkgroup>
            </Identification>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="catalog:c:/win7x86/extract/sources/install_windows 7 ultimate.clg" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Post a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>