From 9972896ea8a65d6f2bd6a4134d7286ada2a2533d Mon Sep 17 00:00:00 2001 From: Simone Date: Tue, 9 Jun 2026 23:28:37 +0200 Subject: [PATCH] fix(deploy-win): don't set cmd shell in autounattend (it blocks post-install) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit autounattend FirstLogonCommands — which run post-install.ps1 — are triggered by explorer starting as the shell. Setting Winlogon\Shell=cmd.exe in the specialize pass stopped explorer, so post-install never ran on a fresh deploy. Remove the shell switch from specialize; explorer runs once for the first logon (deploy-win does no heavy servicing, so no crash-loop risk) and post-install.ps1 sets Shell=cmd.exe at its end — subsequent boots and all of prepare-win run under cmd. Keep the (shell-independent) Server Manager auto-launch disable in specialize. --- .../winimage/assets/autounattend.win2025.xml | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/ci_orchestrator/winimage/assets/autounattend.win2025.xml b/src/ci_orchestrator/winimage/assets/autounattend.win2025.xml index f833d68..bbb37b7 100644 --- a/src/ci_orchestrator/winimage/assets/autounattend.win2025.xml +++ b/src/ci_orchestrator/winimage/assets/autounattend.win2025.xml @@ -128,9 +128,17 @@ 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 - - - - 2 schtasks /Change /TN "\Microsoft\Windows\Server Manager\ServerManager" /Disable Disable Server Manager auto-launch task - 3 + 2 reg add "HKLM\SOFTWARE\Microsoft\ServerManager" /v DoNotOpenServerManagerAtLogon /t REG_DWORD /d 1 /f Do not open Server Manager at logon (HKLM) - 4 + 3 reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\CurrentVersion\ServerManager" /v DoNotOpenAtLogon /t REG_DWORD /d 1 /f Do not open Server Manager at logon (policy)