<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
     <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="[{ArchitectureReplacement}]">
            <ComputerName>[{AppVSequencerVmComputerName}]</ComputerName>
        </component>
    </settings>
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-International-Core" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="[{ArchitectureReplacement}]">
          <InputLocale>0409:00000409</InputLocale>
          <SystemLocale>en-us</SystemLocale>
          <UILanguage>en-us</UILanguage>
          <UserLocale>en-us</UserLocale>
        </component>
        <component name="Microsoft-Windows-TerminalServices-LocalSessionManager" processorArchitecture="[{ArchitectureReplacement}]" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <fDenyTSConnections>false</fDenyTSConnections>
        </component>
        <component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="[{ArchitectureReplacement}]">
            <OOBE>
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountScreen>true</HideLocalAccountScreen>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <NetworkLocation>Work</NetworkLocation>
                <ProtectYourPC>1</ProtectYourPC>
            </OOBE>
            <UserAccounts>
               <LocalAccounts>
                  <LocalAccount wcm:action="add">
                     <Password>
                        <Value>[{GeneratedPasswordReplacement}]</Value>
                        <PlainText>[{PlainTestReplacement}]</PlainText>
                     </Password>
                     <Description>Auto created Sequencer account</Description>
                     <DisplayName>AppVSequencerUser</DisplayName>
                     <Group>Administrators</Group>
                     <Name>[{AppVSequencerUser}]</Name>
                  </LocalAccount>
               </LocalAccounts>
            </UserAccounts>
            <AutoLogon>
                <Password>
                    <Value>[{GeneratedPasswordReplacement}]</Value>
                    <PlainText>[{PlainTestReplacement}]</PlainText>
                </Password>
                <Enabled>true</Enabled>
                <LogonCount>1</LogonCount>
                <Username>[{AppVSequencerUser}]</Username>
            </AutoLogon>
            <FirstLogonCommands>
                    <SynchronousCommand wcm:action="add">
                        <CommandLine>powershell.exe -Command "&amp; {get-netconnectionprofile | set-netconnectionprofile -NetworkCategory Private}"</CommandLine>
                    <Description>Set network to use private profile</Description>
                    <Order>1</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                        <CommandLine>powershell.exe -Command " &amp; {Enable-NetFirewallRule -DisplayGroup \&quot;Remote Desktop\&quot;}"</CommandLine>
                    <Description>Enable remote desktop in firewall</Description>
                    <Order>2</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                        <CommandLine>powershell.exe -Command " &amp; {Enable-NetFirewallRule -DisplayGroup \&quot;Windows Remote Management\&quot;}"</CommandLine>
                    <Description>Enable WinRM in firewall</Description>
                    <Order>3</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                        <CommandLine>powershell.exe -Command " &amp; {Enable-PSRemoting -Force}"</CommandLine>                    
                    <Description>Enable powershell remoting</Description>
                    <Order>4</Order>
                </SynchronousCommand>
                <SynchronousCommand wcm:action="add">
                    <CommandLine>CMD /c reg add &quot;HKLM\System\CurrentControlSet\Control\Network\NewNetworkWindowOff&quot; /f</CommandLine>                    
                    <Description>Set registry key to suppress sharing on/off UI on first logon</Description>
                    <Order>5</Order>
                </SynchronousCommand>
            </FirstLogonCommands>
        </component>
     </settings>
</unattend>
