none
Powershell: try to Merge ICE-Answerfiles.xml RRS feed

  • Question

  • Hello,

    i tried to merge two xml answerfiles in several ways, but it doesn't really work...

    i have two answerfiles, one for all standard settings and one with platformspecific commands and includes. I am now trying to merge these two files. 

    First i tried to use MergeXML but it does much more as it should do and destroy my answerfiles. I use two similar files, the only different are the RunSynchronousCommands. But it replace much more than this. So useless...

    My second try was to use Xpath, but i didn't get any result so i'm not sure if i use Xpath correctly. If i try to use Xpath in a small test XML it works fine but not with the full standard answerfiles...

    Did someone now a better way to merge XML-Files or could you tell me what i've done wrong.

    The only different between these files are this sections:

            <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Path>%SYSTEMDRIVE%\TEMP\Driver\Chipset\SilentInstall.bat</Path>
                        <Order>3</Order>
                        <WillReboot>Always</WillReboot>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>

    And this one:

                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <CommandLine>%SYSTEMDRIVE%\TEMP\Driver\AMD_Graphic\SilentInstall.bat</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <CommandLine>%SYSTEMDRIVE%\TEMP\Driver\CardReader\SilentInstall.bat</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>3</Order>
                        <CommandLine>shutdown /r /t 360 /f</CommandLine>
                    </SynchronousCommand>
                </FirstLogonCommands>

    So what i want is get the "RunSynchronousCommands" from sourcefile and put them into the destination file. Same with firstlogon commands and later on with oem folder and pnpdriver.

    With Xpath i try the following:

    $ns = @{
    dns="urn:schemas-microsoft-com:unattend"
    wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    ew="urn:schemas-microsoft-com:embedded.unattend.internal.v1"
    }
    $Node1 = "RunSynchronousCommand"
    $File1 = [xml](Get-Content -path D:\VFF\Powershell-Skripte\XML-Merge\Getac_S400_G2.xml)

    Select-Xml -Xml $File -Xpath '//wcm:RunSynchronousCommand' -Namespace $ns

    But it returns nothing. I also get nothing with the simpliest xpath commands. what did i wrong?

    PS: Sorry for my bad english, you can also answer in german.

    Monday, November 17, 2014 3:41 PM

All replies

  • Destination-File:

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:ew="urn:schemas-microsoft-com:embedded.unattend.internal.v1">
        <servicing>
            <package action="install">
                <assemblyIdentity name="WinEmb-AppSupport-ComBase" version="6.1.7600.16385" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" />
                <source location="%distributionshareroot%\Packages\FeaturePack\amd64~winemb-appsupport-combase~~~~6.1.7600.16385~1.0\WinEmb-AppSupport-ComBase.cab" />
                <ew:packageInfo releaseType="Feature Pack" customInfoVersion="1.0" />
            </package>
            <package action="install">
                <assemblyIdentity name="WinEmb-AppSupport-Legacy" version="6.1.7601.17514" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" />
                <source location="%distributionshareroot%\Packages\FeaturePack\amd64~winemb-appsupport-legacy~~~~6.1.7601.17514~1.0\winemb-appsupport-legacy.cab" />
                <ew:packageInfo releaseType="Feature Pack" customInfoVersion="1.0" topLevel="false" />
            </package>
            <package action="install">
                <assemblyIdentity name="WinEmb-AppSupport-ComPlus" version="6.1.7601.17514" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" />
                <source location="%distributionshareroot%\Packages\FeaturePack\amd64~winemb-appsupport-complus~~~~6.1.7601.17514~1.0\winemb-appsupport-complus.cab" />
                <ew:packageInfo releaseType="Feature Pack" customInfoVersion="1.0" />
            </package>
            <package action="install">
                <assemblyIdentity name="WinEmb-FS-Core" version="6.1.7601.17514" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" />
                <source location="%distributionshareroot%\Packages\FeaturePack\amd64~winemb-fs-core~~~~6.1.7601.17514~1.0\winemb-fs-core.cab" />
                <ew:packageInfo releaseType="Feature Pack" customInfoVersion="1.0" topLevel="false" />
            </package>
        </servicing>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ComputerName>*</ComputerName>
                <ProductKey>00000-00000-00000-00000-00000</ProductKey>
                <TimeZone>UTC</TimeZone>
                <RegisteredOwner>TEST</RegisteredOwner>
                <RegisteredOrganization>TEST</RegisteredOrganization>
            </component>
            <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DisableSR>1</DisableSR>
            </component>
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Identification>
                    <JoinWorkgroup>C4I</JoinWorkgroup>
                </Identification>
            </component>
            <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <fDenyTSConnections>false</fDenyTSConnections>
            </component>
            <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <FirewallGroups>
                    <FirewallGroup wcm:action="add" wcm:keyValue="rdp">
                        <Active>true</Active>
                        <Group>Remote Desktop</Group>
                        <Profile>all</Profile>
                    </FirewallGroup>
                </FirewallGroups>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>0407:00000407</InputLocale>
                <UILanguage>en-US</UILanguage>
                <SystemLocale>en-US</SystemLocale>
                <UserLocale>en-US</UserLocale>
                <UILanguageFallback>de-DE</UILanguageFallback>
            </component>
            <component name="Microsoft-Windows-Embedded-LogonDesktopBackground" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <BackgroundsPath>
                    <Path>C:\Program Files (x86)\Windows Embedded Standard 7\Background-Pictures\</Path>
                </BackgroundsPath>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Path>%SYSTEMDRIVE%\TEMP\Driver\Chipset\SilentInstall.bat</Path>
                        <Order>3</Order>
                        <WillReboot>Always</WillReboot>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
                    <Password>
                        <Value>TEST</Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Username>admin</Username>
                    <Enabled>true</Enabled>
                </AutoLogon>
                <OOBE>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>TEST</Value>
                        <PlainText>true</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TEST</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <Name>admin</Name>
                            <DisplayName>admin</DisplayName>
                            <Group>Administrators</Group>
                        </LocalAccount>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TEST</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <Name>user</Name>
                            <DisplayName>user</DisplayName>
                            <Group>Users</Group>
                        </LocalAccount>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TEST</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <Name>maintenance</Name>
                            <DisplayName>maintenance</DisplayName>
                            <Group>Administrators</Group>
                        </LocalAccount>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TEST</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <Name>infrastructure</Name>
                            <DisplayName>infrastructure</DisplayName>
                            <Group>Administrators</Group>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <CommandLine>%SYSTEMDRIVE%\TEMP\Driver\AMD_Graphic\SilentInstall.bat</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>2</Order>
                        <CommandLine>%SYSTEMDRIVE%\TEMP\Driver\CardReader\SilentInstall.bat</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>3</Order>
                        <CommandLine>shutdown /r /t 360 /f</CommandLine>
                    </SynchronousCommand>
                </FirstLogonCommands>
            </component>
            <component name="Microsoft-Windows-Embedded-Core-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <HideEvaluationWarning>1</HideEvaluationWarning>
            </component>
        </settings>
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SetupUILanguage>
                    <UILanguage>en-US</UILanguage>
                    <WillShowUI>OnError</WillShowUI>
                </SetupUILanguage>
                <UserLocale>en-US</UserLocale>
                <UILanguage>en-US</UILanguage>
                <InputLocale>de-DE</InputLocale>
                <SystemLocale>en-US</SystemLocale>
            </component>
            <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DiskConfiguration>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Type>Primary</Type>
                                <Extend>true</Extend>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                                <Label>System</Label>
                                <Letter>C</Letter>
                                <Format>NTFS</Format>
                                <Active>true</Active>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <WillWipeDisk>true</WillWipeDisk>
                        <DiskID>0</DiskID>
                    </Disk>
                    <WillShowUI>OnError</WillShowUI>
                </DiskConfiguration>
                <ImageInstall>
                    <OSImage>
                        <InstallTo>
                            <PartitionID>1</PartitionID>
                            <DiskID>0</DiskID>
                        </InstallTo>
                        <WillShowUI>OnError</WillShowUI>
                    </OSImage>
                </ImageInstall>
                <UserData>
                    <AcceptEula>true</AcceptEula>
                    <Organization>TEST</Organization>
                    <FullName>TEST</FullName>
                </UserData>
                <EnableNetwork>true</EnableNetwork>
                <OemFolderPaths>
                    <PathAndCredentials wcm:keyValue="bf80c76b" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders\5.OS-Driver\GETAC-S400-G2\PowerScheme\$OEM$</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="732db05e" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders\5.OS-Driver\GETAC-S400-G2\Chipset\$OEM$</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="8c81f0c5" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders\5.OS-Driver\GETAC-S400-G2\AMD_Graphic\$OEM$</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="7dcc698f" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders\4.OS-Core\$OEM$</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="d85cde4f" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders\5.OS-Driver\GETAC-S400-G2\CardReader\$OEM$</Path>
                    </PathAndCredentials>
                </OemFolderPaths>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-Embedded-Core-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <EnablePrefetcher>0</EnablePrefetcher>
                <EnableSuperfetch>0</EnableSuperfetch>
            </component>
            <component name="Microsoft-Windows-themeservice" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Start>2</Start>
            </component>
            <component name="Microsoft-Windows-OfflineFiles-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DriverStartType>1</DriverStartType>
            </component>
            <component name="Microsoft-Windows-OfflineFiles-Service" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ServiceStart>2</ServiceStart>
            </component>
            <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <EnableLUA>false</EnableLUA>
            </component>
            <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DriverPaths>
                    <PathAndCredentials wcm:keyValue="f69c821b" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\Realtek\Audio\Win7\x64</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="5073adfe" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\Intel\Intel_ProSet_Wireless_Getac_S400_G2</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="18f96531" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\Intel\Intel I210 Gigabit Network Adapter</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="65730505" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\Intel\Intel Management Engine Inferface\MEI Getac S400 G2\1.5M Non-Vpro\Drivers\MEI</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="a5617a1e" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\AlcorMicro_SmartCard\Getac_S400_G2\x64</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="c859cc47" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\WDP\x64</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="b4877ed9" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\Intel\Intel(R)_USB_3.0_eXtensible_Host_Controller_Driver</Path>
                    </PathAndCredentials>
                </DriverPaths>
            </component>
        </settings>
        <ew:answerFileInfo distributionSharePath="C:\__WIN7Embedded\Repository\IBW-Image\dep\DS64SP1" footprint="4488288488" ecoreFootprint="875560960" installationSandboxFootprint="3612727528" />
    </unattend>


    Monday, November 17, 2014 3:43 PM
  • Source-File:

    <?xml version="1.0" encoding="utf-8"?>
    <unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:ew="urn:schemas-microsoft-com:embedded.unattend.internal.v1">
        <servicing>
            <package action="install">
                <assemblyIdentity name="WinEmb-AppSupport-ComBase" version="6.1.7600.16385" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" />
                <source location="%distributionshareroot%\Packages\FeaturePack\amd64~winemb-appsupport-combase~~~~6.1.7600.16385~1.0\WinEmb-AppSupport-ComBase.cab" />
                <ew:packageInfo releaseType="Feature Pack" customInfoVersion="1.0" />
            </package>
            <package action="install">
                <assemblyIdentity name="WinEmb-AppSupport-Legacy" version="6.1.7601.17514" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" />
                <source location="%distributionshareroot%\Packages\FeaturePack\amd64~winemb-appsupport-legacy~~~~6.1.7601.17514~1.0\winemb-appsupport-legacy.cab" />
                <ew:packageInfo releaseType="Feature Pack" customInfoVersion="1.0" topLevel="false" />
            </package>
            <package action="install">
                <assemblyIdentity name="WinEmb-AppSupport-ComPlus" version="6.1.7601.17514" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" />
                <source location="%distributionshareroot%\Packages\FeaturePack\amd64~winemb-appsupport-complus~~~~6.1.7601.17514~1.0\winemb-appsupport-complus.cab" />
                <ew:packageInfo releaseType="Feature Pack" customInfoVersion="1.0" />
            </package>
            <package action="install">
                <assemblyIdentity name="WinEmb-FS-Core" version="6.1.7601.17514" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" />
                <source location="%distributionshareroot%\Packages\FeaturePack\amd64~winemb-fs-core~~~~6.1.7601.17514~1.0\winemb-fs-core.cab" />
                <ew:packageInfo releaseType="Feature Pack" customInfoVersion="1.0" topLevel="false" />
            </package>
        </servicing>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ComputerName>*</ComputerName>
                <ProductKey>00000-00000-00000-00000-00000</ProductKey>
                <TimeZone>UTC</TimeZone>
                <RegisteredOwner>TEST</RegisteredOwner>
                <RegisteredOrganization>TEST</RegisteredOrganization>
            </component>
            <component name="Microsoft-Windows-SystemRestore-Main" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DisableSR>1</DisableSR>
            </component>
            <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Identification>
                    <JoinWorkgroup>C4I</JoinWorkgroup>
                </Identification>
            </component>
            <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <fDenyTSConnections>false</fDenyTSConnections>
            </component>
            <component name="Networking-MPSSVC-Svc" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <FirewallGroups>
                    <FirewallGroup wcm:action="add" wcm:keyValue="rdp">
                        <Active>true</Active>
                        <Group>Remote Desktop</Group>
                        <Profile>all</Profile>
                    </FirewallGroup>
                </FirewallGroups>
            </component>
            <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <InputLocale>0407:00000407</InputLocale>
                <UILanguage>en-US</UILanguage>
                <SystemLocale>en-US</SystemLocale>
                <UserLocale>en-US</UserLocale>
                <UILanguageFallback>de-DE</UILanguageFallback>
            </component>
            <component name="Microsoft-Windows-Embedded-LogonDesktopBackground" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <BackgroundsPath>
                    <Path>C:\Program Files (x86)\Windows Embedded Standard 7\Background-Pictures\</Path>
                </BackgroundsPath>
            </component>
            <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                    <RunSynchronousCommand wcm:action="add">
                        <Order>20</Order>
    <Description>Install Powershell</Description>
                        <Path>%SYSTEMDRIVE%\Temp\PowerShell\SilentInstall.bat</Path>
    <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>21</Order>
    <Description>Install .Net</Description>
                        <Path>%SYSTEMDRIVE%\Temp\DotNet\SilentInstall.bat</Path>
                        <WillReboot>Always</WillReboot>
                    </RunSynchronousCommand>
    <RunSynchronousCommand wcm:action="add">
    <Order>22</Order>
                        <Description>Disable Network Wizard</Description>
                        <Path>reg add HKLM\SYSTEM\CurrentControlSet\Control\Network\NewNetworkWindowOff /F</Path>
                        <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
    <RunSynchronousCommand wcm:action="add">
    <Order>23</Order>
    <Description>Disable Firewall Part 1</Description>
                        <Path>sc stop mpssvc</Path>
    <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
    <RunSynchronousCommand wcm:action="add">
    <Order>24</Order>
    <Description>Disable Firewall Part 2</Description>
                        <Path>sc config mpssvc start= disabled</Path>
    <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
    <RunSynchronousCommand wcm:action="add">
    <Order>25</Order>
    <Description>Install RDE certificate</Description>
                        <Path>%SYSTEMDRIVE%\Temp\Company\Certificate\InstallCert.bat</Path>
    <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
    
    <RunSynchronousCommand wcm:action="add">
    <Order>26</Order>
    <Description>Allow testsigning</Description>
                        <Path>bcdedit /set testsigning on</Path>
    <WillReboot>Never</WillReboot>
                    </RunSynchronousCommand>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <AutoLogon>
                    <Password>
                        <Value>TEST</Value>
                        <PlainText>true</PlainText>
                    </Password>
                    <Username>admin</Username>
                    <Enabled>true</Enabled>
                </AutoLogon>
                <OOBE>
                    <ProtectYourPC>3</ProtectYourPC>
                </OOBE>
                <UserAccounts>
                    <AdministratorPassword>
                        <Value>TEST</Value>
                        <PlainText>true</PlainText>
                    </AdministratorPassword>
                    <LocalAccounts>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TEST</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <Name>admin</Name>
                            <DisplayName>admin</DisplayName>
                            <Group>Administrators</Group>
                        </LocalAccount>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TEST</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <Name>user</Name>
                            <DisplayName>user</DisplayName>
                            <Group>Users</Group>
                        </LocalAccount>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TEST</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <Name>maintenance</Name>
                            <DisplayName>maintenance</DisplayName>
                            <Group>Administrators</Group>
                        </LocalAccount>
                        <LocalAccount wcm:action="add">
                            <Password>
                                <Value>TEST</Value>
                                <PlainText>true</PlainText>
                            </Password>
                            <Name>infrastructure</Name>
                            <DisplayName>infrastructure</DisplayName>
                            <Group>Administrators</Group>
                        </LocalAccount>
                    </LocalAccounts>
                </UserAccounts>
                <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <Order>20</Order>
                        <CommandLine>%SYSTEMDRIVE%\Temp\PowerScheme\Install_PowerScheme.bat</CommandLine>
                    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
                        <Order>21</Order>
                        <CommandLine>%SYSTEMDRIVE%\Temp\TearDown_IBW.bat</CommandLine>
                    </SynchronousCommand>
                    <SynchronousCommand wcm:action="add">
                        <Order>22</Order>
                        <CommandLine>REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce /f /v REG_SZ PrepareSysprep /d "%WINDIR%\System32\sysprep\sysprep.exe /generalize /oobe /unattend:%WINDIR%\System32\sysprep\panther\unattend.xml"</CommandLine>
                    </SynchronousCommand>
                </FirstLogonCommands>
            </component>
            <component name="Microsoft-Windows-Embedded-Core-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <HideEvaluationWarning>1</HideEvaluationWarning>
            </component>
        </settings>
        <settings pass="windowsPE">
            <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <SetupUILanguage>
                    <UILanguage>en-US</UILanguage>
                    <WillShowUI>OnError</WillShowUI>
                </SetupUILanguage>
                <UserLocale>en-US</UserLocale>
                <UILanguage>en-US</UILanguage>
                <InputLocale>de-DE</InputLocale>
                <SystemLocale>en-US</SystemLocale>
            </component>
            <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DiskConfiguration>
                    <Disk wcm:action="add">
                        <CreatePartitions>
                            <CreatePartition wcm:action="add">
                                <Order>1</Order>
                                <Type>Primary</Type>
                                <Extend>true</Extend>
                            </CreatePartition>
                        </CreatePartitions>
                        <ModifyPartitions>
                            <ModifyPartition wcm:action="add">
                                <Order>1</Order>
                                <PartitionID>1</PartitionID>
                                <Label>System</Label>
                                <Letter>C</Letter>
                                <Format>NTFS</Format>
                                <Active>true</Active>
                            </ModifyPartition>
                        </ModifyPartitions>
                        <WillWipeDisk>true</WillWipeDisk>
                        <DiskID>0</DiskID>
                    </Disk>
                    <WillShowUI>OnError</WillShowUI>
                </DiskConfiguration>
                <ImageInstall>
                    <OSImage>
                        <InstallTo>
                            <PartitionID>1</PartitionID>
                            <DiskID>0</DiskID>
                        </InstallTo>
                        <WillShowUI>OnError</WillShowUI>
                    </OSImage>
                </ImageInstall>
                <UserData>
                    <AcceptEula>true</AcceptEula>
                    <Organization>TEST</Organization>
                    <FullName>TEST</FullName>
                </UserData>
                <EnableNetwork>true</EnableNetwork>
                <OemFolderPaths>
                    <PathAndCredentials wcm:keyValue="bf80c76b" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders\5.OS-Driver\GETAC-S400-G2\PowerScheme\$OEM$</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="732db05e" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders\5.OS-Driver\GETAC-S400-G2\Chipset\$OEM$</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="8c81f0c5" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders\5.OS-Driver\GETAC-S400-G2\AMD_Graphic\$OEM$</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="7dcc698f" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders\4.OS-Core\$OEM$</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="d85cde4f" wcm:action="add">
                        <Path>%distributionshareroot%\$OEM$ Folders\5.OS-Driver\GETAC-S400-G2\CardReader\$OEM$</Path>
                    </PathAndCredentials>
                </OemFolderPaths>
            </component>
        </settings>
        <settings pass="offlineServicing">
            <component name="Microsoft-Windows-Embedded-Core-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <EnablePrefetcher>0</EnablePrefetcher>
                <EnableSuperfetch>0</EnableSuperfetch>
            </component>
            <component name="Microsoft-Windows-themeservice" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <Start>2</Start>
            </component>
            <component name="Microsoft-Windows-OfflineFiles-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DriverStartType>1</DriverStartType>
            </component>
            <component name="Microsoft-Windows-OfflineFiles-Service" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <ServiceStart>2</ServiceStart>
            </component>
            <component name="Microsoft-Windows-LUA-Settings" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <EnableLUA>false</EnableLUA>
            </component>
            <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <DriverPaths>
                    <PathAndCredentials wcm:keyValue="f69c821b" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\Realtek\Audio\Win7\x64</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="5073adfe" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\Intel\Intel_ProSet_Wireless_Getac_S400_G2</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="18f96531" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\Intel\Intel I210 Gigabit Network Adapter</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="65730505" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\Intel\Intel Management Engine Inferface\MEI Getac S400 G2\1.5M Non-Vpro\Drivers\MEI</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="a5617a1e" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\AlcorMicro_SmartCard\Getac_S400_G2\x64</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="c859cc47" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\WDP\x64</Path>
                    </PathAndCredentials>
                    <PathAndCredentials wcm:keyValue="b4877ed9" wcm:action="add">
                        <Path>%distributionshareroot%\Out-of-Box Drivers\Intel\Intel(R)_USB_3.0_eXtensible_Host_Controller_Driver</Path>
                    </PathAndCredentials>
                </DriverPaths>
            </component>
        </settings>
        <ew:answerFileInfo distributionSharePath="C:\__WIN7Embedded\Repository\IBW-Image\dep\DS64SP1" footprint="4488288488" ecoreFootprint="875560960" installationSandboxFootprint="3612727528" />
    </unattend>


    Monday, November 17, 2014 3:44 PM