need autounattended.xml help

Discussion in 'Windows 7' started by franner, Sep 26, 2010.

  1. franner

    franner MDL Novice

    Jan 19, 2008
    16
    0
    0
    #1 franner, Sep 26, 2010
    Last edited by a moderator: Apr 20, 2017
    I have made a autounattended.xml for a multiboot windows 7 x86/x64 and server 2008 r2. I have tested this Image many times. The autounattended.xml file works fine except one specific region which I need handled.

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend">
            <settings pass="windowsPE">
                    <component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="h**p://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="h**p://zzz.w3.org/2001/XMLSchema-instance">
                            <UserData>
                                    <ProductKey>
                                            <Key></Key>
                                    </ProductKey>
                                    <Organization>Franner Inc.</Organization>
                                    <FullName>Franner</FullName>
                                    <AcceptEula>true</AcceptEula>
                            </UserData>
                            <ImageInstall>
                                    <OSImage>
                                            <InstallFrom>
                                                    <MetaData wcm:action="add">
                                                                    <Key>/IMAGE/NAME</Key>
                                                                    <Value></Value>
                                                    </MetaData>
                                            </InstallFrom>
                                    </OSImage>
                            </ImageInstall>
                    </component>
                    <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="h**p://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="h**p://zzz.w3.org/2001/XMLSchema-instance">
                            <UserData>
                                    <ProductKey>
                                            <Key></Key>
                                    </ProductKey>
                                    <Organization>Franner Inc.</Organization>
                                    <FullName>Franner</FullName>
                                    <AcceptEula>true</AcceptEula>
                            </UserData>
                            <ImageInstall>
                                    <OSImage>
                                            <InstallFrom>
                                                    <MetaData wcm:action="add">
                                                                    <Key>/IMAGE/NAME</Key>
                                                                    <Value></Value>
                                                    </MetaData>
                                            </InstallFrom>
                                    </OSImage>
                            </ImageInstall>
                    </component>
            </settings>
    
    
    
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="h**p://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="h**p://zzz.w3.org/2001/XMLSchema-instance">
                <ComputerName></ComputerName>
                <ShowWindowsLive>false</ShowWindowsLive>
            </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="h**p://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="h**p://zzz.w3.org/2001/XMLSchema-instance">
                <ComputerName></ComputerName>
                <ShowWindowsLive>false</ShowWindowsLive>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="h**p://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="h**p://zzz.w3.org/2001/XMLSchema-instance">
                <FilterLevel>High</FilterLevel>
                <PlaySound>false</PlaySound>
                <ShowInformationBar>false</ShowInformationBar>
                <DisableAccelerators>true</DisableAccelerators>
                <DisableDevTools>true</DisableDevTools>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <DisableOOBAccelerators>true</DisableOOBAccelerators>
                <Home_Page>h**p://zzz.google.com</Home_Page>
         <SearchScopes>
     <Scope wcm:action="add">
          <ScopeDefault>true</ScopeDefault>
                    <ScopeDisplayName>Google</ScopeDisplayName>
                    <ScopeKey>SearchProvider1</ScopeKey>
                    <ScopeUrl>h**p://zzz.google.com/search?q={searchTerms}</ScopeUrl>
                    </Scope>
                </SearchScopes>
            </component>
            <component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="h**p://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="h**p://zzz.w3.org/2001/XMLSchema-instance">
                <FilterLevel>High</FilterLevel>
                <PlaySound>false</PlaySound>
                <ShowInformationBar>false</ShowInformationBar>
                <DisableAccelerators>true</DisableAccelerators>
                <DisableDevTools>true</DisableDevTools>
                <DisableFirstRunWizard>true</DisableFirstRunWizard>
                <DisableOOBAccelerators>true</DisableOOBAccelerators>
                <Home_Page>h**p://zzz.google.com</Home_Page>
         <SearchScopes>
     <Scope wcm:action="add">
          <ScopeDefault>true</ScopeDefault>
                    <ScopeDisplayName>Google</ScopeDisplayName>
                    <ScopeKey>SearchProvider1</ScopeKey>
                    <ScopeUrl>h**p://zzz.google.com/search?q={searchTerms}</ScopeUrl>
                    </Scope>
                </SearchScopes>
             </component>
            <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="h**p://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="h**p://zzz.w3.org/2001/XMLSchema-instance">
                <DisableWER>1</DisableWER>
            </component>
            <component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="h**p://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="h**p://zzz.w3.org/2001/XMLSchema-instance">
                <DisableWER>1</DisableWER>
            </component>
        </settings>
    
    
    
            <settings pass="oobeSystem">
                    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="h**p://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="h**p://zzz.w3.org/2001/XMLSchema-instance">
                            <UserAccounts>
    <AdministratorPassword>
    <Value></Value>
    <PlainText>true</PlainText>
    </AdministratorPassword>
                                    <LocalAccounts>
                                            <LocalAccount wcm:action="add">
                                                    <Name>Computer</Name>
                                                    <Group>Administrators</Group>
                                                    <Password>
                                                            <PlainText>true</PlainText>
                                                            <Value></Value>
                                                    </Password>
                                            </LocalAccount>
                                    </LocalAccounts>
                            </UserAccounts>
    <AutoLogon>
    <Enabled>true</Enabled>
    <Username>Computer</Username>
    <Password>
    <Value />
    </Password>
    <LogonCount>9999999</LogonCount>
    </AutoLogon>
    <TimeZone>Romance Standard Time</TimeZone>
    <ComputerName>Computer x86</ComputerName>
                            <OOBE>
                                    <HideEULAPage>true</HideEULAPage>
                                    <NetworkLocation>Home</NetworkLocation>
                                    <ProtectYourPC>3</ProtectYourPC>
                                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                            </OOBE>
                    </component>
                    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="h**p://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="h**p://zzz.w3.org/2001/XMLSchema-instance">
                            <UserAccounts>
    <AdministratorPassword>
    <Value></Value>
    <PlainText>true</PlainText>
    </AdministratorPassword>
                                    <LocalAccounts>
                                            <LocalAccount wcm:action="add">
                                                    <Name>Computer</Name>
                                                    <Group>Administrators</Group>
                                                    <Password>
                                                            <PlainText>true</PlainText>
                                                            <Value></Value>
                                                    </Password>
                                            </LocalAccount>
                                    </LocalAccounts>
                            </UserAccounts>
    <AutoLogon>
    <Enabled>true</Enabled>
    <Username>Computer</Username>
    <Password>
    <Value />
    </Password>
    <LogonCount>9999999</LogonCount>
    </AutoLogon>
    <TimeZone>Romance Standard Time</TimeZone>
    <ComputerName>Computer x64</ComputerName>
                            <OOBE>
                                    <HideEULAPage>true</HideEULAPage>
                                    <NetworkLocation>Home</NetworkLocation>
                                    <ProtectYourPC>3</ProtectYourPC>
                                    <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                            </OOBE>
                    </component>
            </settings>
    <servicing>
            <package action="configure">
                <assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.1.7600.16385" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
                <selection name="WAS-WindowsActivationService" state="true"/> 
                <selection name="WAS-NetFxEnvironment" state="true"/> 
                <selection name="WAS-ConfigurationAPI" state="true"/> 
                <selection name="DesktopExperience" state="true"/> 
                <selection name="InkSupport" state="true"/> 
                <selection name="NetFx3" state="true"/> 
                <selection name="WAS-ProcessModel" state="true"/> 
                <selection name="WirelessNetworking" state="true"/> 
            </package>
    </servicing>
    </unattend>
    servicing part:
    Code:
    <servicing>
            <package action="configure">
                <assemblyIdentity name="Microsoft-Windows-Foundation-Package" version="6.1.7600.16385" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="" />
                <selection name="WAS-WindowsActivationService" state="true"/> 
                <selection name="WAS-NetFxEnvironment" state="true"/> 
                <selection name="WAS-ConfigurationAPI" state="true"/> 
                <selection name="DesktopExperience" state="true"/> 
                <selection name="InkSupport" state="true"/> 
                <selection name="NetFx3" state="true"/> 
                <selection name="WAS-ProcessModel" state="true"/> 
                <selection name="WirelessNetworking" state="true"/> 
            </package>
    </servicing>
    The problem is if I have the <servicing> part in autounattended.xml then windows 7 x86 and x64 will have error at the end of the install because they don't have the component (features) which gets enabled in <servicing>. This part is needed for server 2008 R2 which installs fine. When I take out the <servicing> part everything is fine when installing windows 7.

    My question is, is there a way around to get windows 7 x86/x64 and server 2008 R2 unattended install with the services enabled. An solution I would think was good if its possible (I unfortunately dunno which code to write), would be to make the <servicing> part only run if windows server 2008 r2 was selected and otherwise ignored by windows 7.
    The last 2 weeks I have been searching with MDL, google, msfn, and many other sites which write about unattended setups, unattended.xml, autounattended.xml, <servicing> etc. But I haven't found someone who did have a similiar situation.

    I hope u can guide me to help me solve this problem.

    In code I would do something like this (I know this cannot be used in the xml file but I think u get the idea where I want to head as a suggestion). Take this as an illustration.

    if %winOS% == "server 2008 R2" Then
    <servicing>
    .
    .
    .
    </servicing>
    endif

    h**p://zzz = h**p://www

    Code:
    h**p://zzz = h t t p : / / w w w 
     
  2. urie

    urie Moderator
    Staff Member

    May 21, 2007
    9,039
    3,388
    300
    The only other thing I can think of is actually mount your Install.wim images and add Autounattend.xml as Unattend.xml to windows\panther folder. Personally i would just have various xml files on usb thumbdrive just name the one you need to use as Autounattend.xml and install will grab it from there.