fix(setup): defeat WaaSMedicSvc wuauserv healing + AutoAdminLogon Final gate
Two persistent Validate-SetupState failures despite §7.4 fixes: 1. wuauserv — Setup's Assert-Steps pass at exit but WaaSMedicSvc (tamper-protected, cannot be disabled) polls SCM ~30-60s and resets StartType to Manual. Fix: write Start=4 directly to registry key (SCM API alone is overrideable); deny WaaSMedicSvc write access to wuauserv registry key via ACL (best-effort, non-fatal if WinRM session lacks permission); re-enforce Start=4 after DISM in Cleanup; add Pre-Final re-affirmation block before Final gate. 2. AutoAdminLogon — Step 5c re-affirms it mid-script, but Steps 7-10 take hours and no Final gate check catches a late reset. Fix: add Pre-Final re-affirmation block (same as wuauserv) + add Assert-Step 'Final' 'AutoAdminLogon=1' to Final gate. Also update WinISO default path to April 2026 refresh ISO. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -127,7 +127,7 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
# ── ISOs ──
|
||||
[string] $WinISO = 'F:\CI\ISO\26100.1742.240906-0331.ge_release_svc_refresh_SERVER_VOL_x64FRE_en-us.iso',
|
||||
[string] $WinISO = 'F:\CI\ISO\en-us_windows_server_2025_updated_april_2026_x64_dvd_225d826d.iso',
|
||||
[string] $ToolsISO = 'F:\CI\ISO\VMware-tools-windows.iso',
|
||||
|
||||
# Cache path for the rebuilt no-prompt Windows ISO. Reused across runs when
|
||||
|
||||
Reference in New Issue
Block a user