From 7845e214413ee47cd187be33fc5cfa69e80c4aaa Mon Sep 17 00:00:00 2001 From: Simone Date: Tue, 9 Jun 2026 23:08:23 +0200 Subject: [PATCH] feat(deploy-win): set cmd.exe shell in autounattend (specialize pass) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a Microsoft-Windows-Deployment RunSynchronousCommand in the specialize pass that sets Winlogon\Shell=cmd.exe before the first logon. A freshly deployed template then never starts explorer — not even the transient desktop during OOBE/install — closing the last window where the shell could crash-loop during servicing. post-install.ps1 and prepare-win still re-affirm it for redundancy / existing templates. --- .../winimage/assets/autounattend.win2025.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/ci_orchestrator/winimage/assets/autounattend.win2025.xml b/src/ci_orchestrator/winimage/assets/autounattend.win2025.xml index b02fd12..0425956 100644 --- a/src/ci_orchestrator/winimage/assets/autounattend.win2025.xml +++ b/src/ci_orchestrator/winimage/assets/autounattend.win2025.xml @@ -127,6 +127,23 @@ CI CI Lab + + + + + + 1 + reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /t REG_SZ /d cmd.exe /f + Set interactive shell to cmd.exe + + +