<?xml version="1.0" encoding="utf-8"?>
<!--
  $author = 	T. Butz  
  $version = 	2015.07.29
  $url = 	'www.thorsten-butz.de'; $twitter = $adn = '@thorstenbutz' 
  $title = 	Sample unattended file for Windows 10 (Treshold)
  $remark = 	This unattended.xml file is intended to be uses with "Convert-WindowsImage.ps1" (Wim2VHD) or SYSPREP. 
            	It provides basic functionality during phase 4 and 7 (oobe) with only a few optional settings.

  $gVLK = 
    Windows 10 Professional			W269N-WFGWX-YVC9B-4J6C9-T83GX
    Windows 10 Professional N			MH37W-N47XK-V7XM9-C7227-GCQG9
    Windows 10 Enterprise			NPPR9-FWDCX-D2C8J-H872K-2YT43
    Windows 10 Enterprise N			DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
    Windows 10 Education			NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
    Windows 10 Education N			2WH4N-8QGBV-H22JP-CT43Q-MDWWJ
    Windows 10 Enterprise 2015 LTSB		WNMTR-4C88C-JK8YV-HQ7T2-76DF9
    Windows 10 Enterprise 2015 LTSB N		2F77B-TNFGY-69QQF-B8YKP-D69TJ

  $reference = 
    https://technet.microsoft.com/en-US/jj612867.aspx 
    https://gallery.technet.microsoft.com/scriptcenter/Convert-WindowsImageps1-0fe23a8f
-->
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <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>de-DE</InputLocale>
            <SystemLocale>en-US</SystemLocale>
            <UILanguage>en-US</UILanguage>
            <UserLocale>de-DE</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">
            <AutoLogon>
                <Password>
                    <Value>Pa$$w0rd</Value>
                    <PlainText>true</PlainText>
                </Password>
                <Enabled>true</Enabled>
                <LogonCount>1</LogonCount>
                <Username>Administrator</Username>
            </AutoLogon>
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <ProtectYourPC>3</ProtectYourPC>
            </OOBE>
            <UserAccounts>
                <AdministratorPassword>
                    <Value>Pa$$w0rd</Value>
                    <PlainText>true</PlainText>
                </AdministratorPassword>
            </UserAccounts>
            <RegisteredOrganization>Contoso Corporation</RegisteredOrganization>
            <RegisteredOwner>Treshhold</RegisteredOwner>
            <TimeZone>W. Europe Standard Time</TimeZone>
            <FirstLogonCommands>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>REG ADD &quot;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Activation&quot; /v NotificationDisabled /t REG_DWORD /d 1 /f </CommandLine>
                    <Description>Remove licensing watermark</Description>
                    <Order>1</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>REG ADD &quot;HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced&quot; /v HideFileExt /t REG_DWORD /d 0 /f</CommandLine>
                    <Description>Show file extensions</Description>
                    <Order>2</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>cmd /c move c:\Convert-WindowsImageInfo.txt c:\Users\Public\Documents</CommandLine>
                    <Description>(Re)move logfile</Description>
                    <Order>3</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>powershell.exe -noprofile -command &quot;&amp;{ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -force ; if (Test-Path c:\unattend.xml) { Move-Item c:\unattend.xml C:\Users\Public\Documents\unattend.txt}}&quot; </CommandLine>
                    <Order>4</Order>
                    <Description>Set PoSh ExecutionPolicy</Description>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
    </settings>
    <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">
            <ComputerName>*</ComputerName>
            <!--     PID W10 Pro, ignored by W10 Enterprise    -->
            <ProductKey>W269N-WFGWX-YVC9B-4J6C9-T83GX</ProductKey>
            <RegisteredOwner />
        </component>
        <component name="Microsoft-Windows-IE-InternetExplorer" 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">
            <Home_Page>about:blank</Home_Page>
            <DisableFirstRunWizard>true</DisableFirstRunWizard>
        </component>
    </settings>
    <cpi:offlineImage cpi:source="wim:d:/w10rtm/sources/install.wim#Windows 10 Pro" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
