From b60fb8ba62c36d5090c831b2dc5f2c803d6eece6 Mon Sep 17 00:00:00 2001 From: 474791-dev <474791@eriesd.org> Date: Mon, 15 Dec 2025 12:06:27 -0500 Subject: [PATCH] Refactor win2025.xml for improved structure Refactor XML structure for Windows 2025 unattended installation settings, consolidating components and commands for clarity and efficiency. --- assets/win2025.xml | 355 ++++----------------------------------------- 1 file changed, 27 insertions(+), 328 deletions(-) diff --git a/assets/win2025.xml b/assets/win2025.xml index 2796db6..ae062d0 100644 --- a/assets/win2025.xml +++ b/assets/win2025.xml @@ -1,363 +1,62 @@ - - - en-US - + + en-US 0409:00000409 en-US en-US en-US en-US - + 0 true - - - 1 - EFI - 128 - - - - 2 - MSR - 128 - - - - 3 - Primary - true - + 1EFI128 + 2Primarytrue - - - 1 - 1 - - FAT32 - - - - 2 - 2 - - - - 3 - 3 - - C - NTFS - + 11FAT32 + 22CNTFS - - - /IMAGE/NAME - Windows Server 2025 SERVERSTANDARD - - - - 0 - 3 - - OnError + /IMAGE/NAMEWindows Server 2025 SERVERSTANDARD + 02 + Never false - - true - Never - - - false - Never - - - true - Docker - Windows for Docker - - TVRH6-WHNXV-R9WG3-9XRFY-MY832 - - - false - - false - - - - - - false - - - - - true - - - 1 + falseNever + falseNever + trueDockerWindows for Docker + - - true - - + * - - Dockur - Windows for Docker - 24/7 - - Dockur - https://github.com/dockur/windows/issues - - Windows for Docker - - - 1 - - - true - true - https://google.com - about:blank - - - true - true - https://google.com - about:blank - - - 0 - - - 1 - - - 0409:00000409 - en-US - en-US - en-US - en-US - - - - - 1 - reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\FirstNetwork" /v Category /t REG_DWORD /d 1 /f - Set Network Location to Home - - - 2 - pnputil -i -a C:\Windows\Drivers\viogpudo\viogpudo.inf - Install VirtIO display driver - - - - - true - - - true - - - false - - - 0 - - - - - true - all - @FirewallAPI.dll,-28752 - - + DockurWindows for DockerDockur + 1 + - - true - - - 1 - - - - - - Docker - Administrators - - - true</PlainText> - </Password> - </LocalAccount> - </LocalAccounts> - <AdministratorPassword> - <Value>password</Value> - <PlainText>true</PlainText> - </AdministratorPassword> - </UserAccounts> - <AutoLogon> - <Username>Docker</Username> - <Enabled>true</Enabled> - <LogonCount>65432</LogonCount> - <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> - <NetworkLocation>Home</NetworkLocation> - <ProtectYourPC>3</ProtectYourPC> - <SkipUserOOBE>true</SkipUserOOBE> - <SkipMachineOOBE>true</SkipMachineOOBE> - </OOBE> - <RegisteredOrganization>Dockur</RegisteredOrganization> - <RegisteredOwner>Windows for Docker</RegisteredOwner> + <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\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f</CommandLine> - <Description>Allow guest access to network shares</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>2</Order> - <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "RequireSecuritySignature" /t REG_DWORD /d 0 /f</CommandLine> - <Description>Disable SMB signing requirement</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>4</Order> - <CommandLine>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device" /v "DevicePasswordLessBuildVersion" /t REG_DWORD /d 0 /f</CommandLine> - <Description>Enable option for passwordless sign-in</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>5</Order> - <CommandLine>powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile -NonInteractive set-localuser -name "Docker" -passwordneverexpires 1</CommandLine> - <Description>Password Never Expires</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>6</Order> - <CommandLine>cmd /C POWERCFG -H OFF</CommandLine> - <Description>Disable Hibernation</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>7</Order> - <CommandLine>cmd /C POWERCFG -X -monitor-timeout-ac 0</CommandLine> - <Description>Disable monitor blanking</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>8</Order> - <CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Edge" /v "HideFirstRunExperience" /t REG_DWORD /d 1 /f</CommandLine> - <Description>Disable first-run experience in Edge</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>9</Order> - <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCopilotButton" /t REG_DWORD /d 0 /f</CommandLine> - <Description>Hide Copilot button</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>10</Order> - <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 0 /f</CommandLine> - <Description>Show file extensions in Explorer</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>11</Order> - <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateFileSizePercent" /t REG_DWORD /d 0 /f</CommandLine> - <Description>Zero Hibernation File</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>12</Order> - <CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f</CommandLine> - <Description>Disable Hibernation</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>13</Order> - <CommandLine>cmd /C POWERCFG -X -standby-timeout-ac 0</CommandLine> - <Description>Disable Sleep</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>14</Order> - <CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services" /v "fAllowUnlistedRemotePrograms" /t REG_DWORD /d 1 /f</CommandLine> - <Description>Enable RemoteAPP to launch unlisted programs</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>15</Order> - <CommandLine>reg.exe add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList" /v "fDisabledAllowList" /t REG_DWORD /d 1 /f</CommandLine> - <Description>Disable RemoteApp allowlist</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>16</Order> - <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowTaskViewButton" /t REG_DWORD /d 0 /f</CommandLine> - <Description>Remove Task View from the Taskbar</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>17</Order> - <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarDa" /t REG_DWORD /d 0 /f</CommandLine> - <Description>Remove Widgets from the Taskbar</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>18</Order> - <CommandLine>reg.exe add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d 0 /f</CommandLine> - <Description>Remove Chat from the Taskbar</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>19</Order> - <CommandLine>reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v "NoAutoUpdate" /t REG_DWORD /d 1 /f</CommandLine> - <Description>Turn off Windows Update auto download</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>20</Order> - <CommandLine>netsh advfirewall firewall set rule group="@FirewallAPI.dll,-32752" new enable=Yes</CommandLine> - <Description>Enable Network Discovery</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>21</Order> - <CommandLine>netsh advfirewall firewall set rule group="@FirewallAPI.dll,-28502" new enable=Yes</CommandLine> - <Description>Enable File Sharing</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>22</Order> - <CommandLine>cmd /C rd /q C:\Windows.old</CommandLine> - <Description>Remove empty Windows.old folder</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>23</Order> - <CommandLine>cmd /C mklink /d %userprofile%\Desktop\Shared \\host.lan\Data</CommandLine> - <Description>Create desktop shortcut to shared folder</Description> - </SynchronousCommand> - <SynchronousCommand wcm:action="add"> - <Order>24</Order> - <CommandLine>cmd /C if exist "C:\OEM\install.bat" start "Install" "cmd /C C:\OEM\install.bat"</CommandLine> - <Description>Execute custom script from the OEM folder if exists</Description> - </SynchronousCommand> + <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>