<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">

  <!--
    MoomsLab Win11 unattend.xml — skip OOBE + FR i18n + run setup-ssh.ps1 at first boot.
    Placed in C:\Windows\Panther\unattend.xml by deploy.ps1 step 6.5.
    Local admin = MoomsLabAdmin (default password 'ChangeMe!2026' - rotate post-deploy via Ansible).
    Computer name: WIN-<random> (Windows default, override via Ansible if needed).
  -->

  <settings pass="oobeSystem">
    <component name="Microsoft-Windows-International-Core" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <InputLocale>040c:0000040c</InputLocale>
      <SystemLocale>fr-FR</SystemLocale>
      <UILanguage>fr-FR</UILanguage>
      <UserLocale>fr-FR</UserLocale>
    </component>
    <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
      <OOBE>
        <HideEULAPage>true</HideEULAPage>
        <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
        <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
        <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
        <NetworkLocation>Work</NetworkLocation>
        <ProtectYourPC>3</ProtectYourPC>
        <SkipMachineOOBE>true</SkipMachineOOBE>
        <SkipUserOOBE>true</SkipUserOOBE>
      </OOBE>
      <UserAccounts>
        <LocalAccounts>
          <LocalAccount wcm:action="add">
            <Name>MoomsLabAdmin</Name>
            <DisplayName>MoomsLab Admin</DisplayName>
            <Group>Administrators</Group>
            <Password>
              <Value>ChangeMe!2026</Value>
              <PlainText>true</PlainText>
            </Password>
          </LocalAccount>
        </LocalAccounts>
      </UserAccounts>
      <AutoLogon>
        <Username>MoomsLabAdmin</Username>
        <Password>
          <Value>ChangeMe!2026</Value>
          <PlainText>true</PlainText>
        </Password>
        <Enabled>true</Enabled>
        <LogonCount>1</LogonCount>
      </AutoLogon>
      <FirstLogonCommands>
        <SynchronousCommand wcm:action="add">
          <Order>1</Order>
          <CommandLine>powershell -ExecutionPolicy Bypass -File C:\Windows\Setup\Scripts\setup-ssh.ps1</CommandLine>
          <Description>Enable OpenSSH Server + inject Ansible pubkey</Description>
          <RequiresUserInput>false</RequiresUserInput>
        </SynchronousCommand>
        <SynchronousCommand wcm:action="add">
          <Order>2</Order>
          <CommandLine>powershell -Command "Set-TimeZone -Id 'Central Pacific Standard Time'"</CommandLine>
          <Description>Set timezone Pacific/Noumea (NC)</Description>
          <RequiresUserInput>false</RequiresUserInput>
        </SynchronousCommand>
      </FirstLogonCommands>
      <TimeZone>Central Pacific Standard Time</TimeZone>
    </component>
  </settings>

</unattend>
