From 640b02868ab73a69f72ec7396638ce8758f8e3df Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Sat, 4 Jul 2026 00:50:45 -0500 Subject: [PATCH] fix(iso): resolve windows update re-enabling failures on first boot (#4807) * fix iso update service reenable * test allow font scale sync state --- pester/xaml.Tests.ps1 | 1 + tools/autounattend.xml | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pester/xaml.Tests.ps1 b/pester/xaml.Tests.ps1 index 1aa7100e..42aac74a 100644 --- a/pester/xaml.Tests.ps1 +++ b/pester/xaml.Tests.ps1 @@ -310,6 +310,7 @@ Describe "XAML and sync wiring" { "InstallAppEntriesRendered", "ProgressBar", "progressBarTextBlock", + "FontScaleFactor", "Win11ISOImageInfo", "Win11ISODriveLetter", "Win11ISOWimPath", diff --git a/tools/autounattend.xml b/tools/autounattend.xml index 04d955cb..f92861f4 100644 --- a/tools/autounattend.xml +++ b/tools/autounattend.xml @@ -433,10 +433,10 @@ $scripts = @( reg.exe delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Config" /v DODownloadMode /f; reg.exe add "HKLM\Software\Policies\Microsoft\Windows\OneDrive" /v DisableFileSyncNGSC /t REG_DWORD /d 0 /f; reg.exe add "HKCU\Software\Microsoft\Windows\CurrentVersion\GameDVR" /v AppCaptureEnabled /t REG_DWORD /d 0 /f; - reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\BITS" /v Start /t REG_DWORD /d 3 /f; - reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\wuauserv" /v Start /t REG_DWORD /d 3 /f; - reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\UsoSvc" /v Start /t REG_DWORD /d 2 /f; - reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\WaaSMedicSvc" /v Start /t REG_DWORD /d 3 /f; + $services = @{ BITS = 'Manual'; wuauserv = 'Manual'; UsoSvc = 'Automatic'; WaaSMedicSvc = 'Manual' }; + foreach ($name in $services.Keys) { + Set-Service -Name $name -StartupType $services[$name] -ErrorAction SilentlyContinue; + } }; { reg.exe add "HKLM\SOFTWARE\Microsoft\PolicyManager\current\device\Education" /f;