<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="oobeSystem">
        <component name="Microsoft-Windows-Shell-Setup"
                   processorArchitecture="amd64"
                   publicKeyToken="31bf3856ad364e35"
                   language="neutral"
                   versionScope="nonSxS">

            <OOBE>
                <!-- Wyłącz wszystkie ekrany powitalne -->
                <HideEULAPage>true</HideEULAPage>
                <HideLocalAccountSetupPage>true</HideLocalAccountSetupPage>
                <HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
                <HideOnlineAccountScreens>true</HideOnlineAccountScreens>
                <HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
                <SkipMachineOOBE>true</SkipMachineOOBE>
                <SkipUserOOBE>true</SkipUserOOBE>
                <ProtectYourPC>3</ProtectYourPC>
	    </OOBE>

		<settings pass="oobeSystem">
		    <component name="Microsoft-Windows-Shell-Setup" ...>
			
			<FirstLogonCommands>
			    <!-- Kolejność ma znaczenie -->
			    <SynchronousCommand wcm:action="add">
				<Order>1</Order>
				<CommandLine>
				    powershell.exe -ExecutionPolicy Bypass -File 
				    "C:\Setup\first_logon.ps1"
				</CommandLine>
				<Description>Konfiguracja środowiska</Description>
			    </SynchronousCommand>
			</FirstLogonCommands>

		    </component>
		</settings>

            <!-- Ustawienia regionalne od razu po polsku -->
            <UILanguage>pl-PL</UILanguage>
            <SystemLocale>pl-PL</SystemLocale>
            <UserLocale>pl-PL</UserLocale>
            <InputLocale>pl-PL</InputLocale>
            <TimeZone>Central European Standard Time</TimeZone>

        </component>

        <!-- Wyłącz Cortanę która też pyta -->
        <component name="Microsoft-Windows-Shell-Setup"
                   processorArchitecture="amd64"
                   publicKeyToken="31bf3856ad364e35"
                   language="neutral"
                   versionScope="nonSxS">
            <DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
        </component>

    </settings>
</unattend>
