From bc20fd633e46f518d62b8cfb26e764ae67190044 Mon Sep 17 00:00:00 2001 From: Simone Date: Tue, 9 Jun 2026 23:41:22 +0200 Subject: [PATCH] fix(deploy-win): keep default background colour, just drop the wallpaper Remove only the wallpaper image (Wallpaper="" + WallpaperStyle=0) and leave Control Panel\Colors\Background at the WS2025 default, so the desktop shows the default grey instead of black. --- .../winimage/assets/post-install.win.ps1.tmpl | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/ci_orchestrator/winimage/assets/post-install.win.ps1.tmpl b/src/ci_orchestrator/winimage/assets/post-install.win.ps1.tmpl index e403d7d..dfe252e 100644 --- a/src/ci_orchestrator/winimage/assets/post-install.win.ps1.tmpl +++ b/src/ci_orchestrator/winimage/assets/post-install.win.ps1.tmpl @@ -263,11 +263,10 @@ reg add 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' /v Hi reg add 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' /v LaunchTo /t REG_DWORD /d 1 /f | Out-Null L 'Explorer UX tweaks applied (HKCU)' -# ── No desktop wallpaper — solid black background (headless CI VM) ──────── -reg add 'HKCU\Control Panel\Desktop' /v Wallpaper /t REG_SZ /d '' /f | Out-Null -reg add 'HKCU\Control Panel\Desktop' /v WallpaperStyle /t REG_SZ /d 0 /f | Out-Null -reg add 'HKCU\Control Panel\Colors' /v Background /t REG_SZ /d '0 0 0' /f | Out-Null -L 'Wallpaper removed (black background, HKCU)' +# ── No desktop wallpaper (keep the WS2025 default background colour) ────── +reg add 'HKCU\Control Panel\Desktop' /v Wallpaper /t REG_SZ /d '' /f | Out-Null +reg add 'HKCU\Control Panel\Desktop' /v WallpaperStyle /t REG_SZ /d 0 /f | Out-Null +L 'Wallpaper removed (default background colour, HKCU)' # ── Taskbar / terminal UX tweaks ───────────────────────────────────────── # SearchboxTaskbarMode=0 hide search bar @@ -284,10 +283,9 @@ reg add 'HKU\DefaultUser2\Software\Microsoft\Windows\CurrentVersion\Search' reg add 'HKU\DefaultUser2\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' /v ShowTaskViewButton /t REG_DWORD /d 0 /f | Out-Null reg add 'HKU\DefaultUser2\Console\%Startup' /v DelegationConsole /t REG_SZ /d '{E12CFF52-A866-4C77-9A90-F570A7AA2C6B}' /f | Out-Null reg add 'HKU\DefaultUser2\Console\%Startup' /v DelegationTerminal /t REG_SZ /d '{E12CFF52-A866-4C77-9A90-F570A7AA2C6B}' /f | Out-Null -# No wallpaper / black background as the default for any future profile. -reg add 'HKU\DefaultUser2\Control Panel\Desktop' /v Wallpaper /t REG_SZ /d '' /f | Out-Null -reg add 'HKU\DefaultUser2\Control Panel\Desktop' /v WallpaperStyle /t REG_SZ /d 0 /f | Out-Null -reg add 'HKU\DefaultUser2\Control Panel\Colors' /v Background /t REG_SZ /d '0 0 0' /f | Out-Null +# No wallpaper (keep default background colour) for any future profile. +reg add 'HKU\DefaultUser2\Control Panel\Desktop' /v Wallpaper /t REG_SZ /d '' /f | Out-Null +reg add 'HKU\DefaultUser2\Control Panel\Desktop' /v WallpaperStyle /t REG_SZ /d 0 /f | Out-Null reg unload HKU\DefaultUser2 2>&1 | Out-Null L 'Taskbar: search hidden, task view hidden, WT default terminal, no wallpaper'