windows_in_docker/assets/win2025.xml
474791-dev b60fb8ba62
Refactor win2025.xml for improved structure
Refactor XML structure for Windows 2025 unattended installation settings, consolidating components and commands for clarity and efficiency.
2025-12-15 12:06:27 -05:00

64 lines
4.8 KiB
XML

<?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="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35">
<SetupUILanguage><UILanguage>en-US</UILanguage></SetupUILanguage>
<InputLocale>0409:00000409</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UILanguageFallback>en-US</UILanguageFallback>
<UserLocale>en-US</UserLocale>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35">
<DiskConfiguration>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<CreatePartition wcm:action="add"><Order>1</Order><Type>EFI</Type><Size>128</Size></CreatePartition>
<CreatePartition wcm:action="add"><Order>2</Order><Type>Primary</Type><Extend>true</Extend></CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add"><Order>1</Order><PartitionID>1</PartitionID><Label>System</Label><Format>FAT32</Format></ModifyPartition>
<ModifyPartition wcm:action="add"><Order>2</Order><PartitionID>2</PartitionID><Label>Windows</Label><Letter>C</Letter><Format>NTFS</Format></ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallFrom><MetaData wcm:action="add"><Key>/IMAGE/NAME</Key><Value>Windows Server 2025 SERVERSTANDARD</Value></MetaData></InstallFrom>
<InstallTo><DiskID>0</DiskID><PartitionID>2</PartitionID></InstallTo>
<WillShowUI>Never</WillShowUI>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
</OSImage>
</ImageInstall>
<DynamicUpdate><Enable>false</Enable><WillShowUI>Never</WillShowUI></DynamicUpdate>
<UpgradeData><Upgrade>false</Upgrade><WillShowUI>Never</WillShowUI></UpgradeData>
<UserData><AcceptEula>true</AcceptEula><FullName>Docker</FullName><Organization>Windows for Docker</Organization></UserData>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35">
<ComputerName>*</ComputerName>
<OEMInformation><Manufacturer>Dockur</Manufacturer><Model>Windows for Docker</Model><SupportProvider>Dockur</SupportProvider></OEMInformation>
</component>
<component name="Microsoft-Windows-ErrorReportingCore" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35"><DisableWER>1</DisableWER></component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35">
<UserAccounts><AdministratorPassword><Value>password</Value><PlainText>true</PlainText></AdministratorPassword></UserAccounts>
<AutoLogon><Username>Administrator</Username><Enabled>true</Enabled><LogonCount>1</LogonCount><Password><Value>password</Value><PlainText>true</PlainText></Password></AutoLogon>
<Display><ColorDepth>32</ColorDepth><HorizontalResolution>1920</HorizontalResolution><VerticalResolution>1080</VerticalResolution></Display>
<OOBE><HideEULAPage>true</HideEULAPage><HideLocalAccountScreen>true</HideLocalAccountScreen><HideOEMRegistrationScreen>true</HideOEMRegistrationScreen><HideOnlineAccountScreens>true</HideOnlineAccountScreens><HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE><SkipUserOOBE>true</SkipUserOOBE><SkipMachineOOBE>true</SkipMachineOOBE></OOBE>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add"><Order>1</Order><CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Power" /v ThrottlePolicy /t REG_DWORD /d 0 /f</CommandLine><Description>Disable CPU throttling</Description></SynchronousCommand>
<SynchronousCommand wcm:action="add"><Order>2</Order><CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Processor" /v EnableIdleThread /t REG_DWORD /d 0 /f</CommandLine><Description>Force full CPU utilization</Description></SynchronousCommand>
<SynchronousCommand wcm:action="add"><Order>3</Order><CommandLine>wmic computersystem where name="%computername%" set AutomaticManagedPagefile=False</CommandLine><Description>Disable automatic pagefile</Description></SynchronousCommand>
<SynchronousCommand wcm:action="add"><Order>4</Order><CommandLine>wmic pagefileset where name="C:\\pagefile.sys" delete</CommandLine><Description>Remove pagefile</Description></SynchronousCommand>
</FirstLogonCommands>
</component>
</settings>
</unattend>