From 4b3a4e1507d2d08ce5fc924a16b40d52be72ad43 Mon Sep 17 00:00:00 2001 From: StefanStojanovic Date: Wed, 1 Mar 2023 16:38:37 +0100 Subject: [PATCH] ansible: prevent autologin block on reboot windows Windows 10 and 11 machines occasionally show finish setting up device screen thus preventing Jenkins from starting after reboot. These changes disable that behavior. Refs: https://github.com/nodejs/build/issues/3046 --- ansible/roles/bootstrap/tasks/partials/win.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ansible/roles/bootstrap/tasks/partials/win.yml b/ansible/roles/bootstrap/tasks/partials/win.yml index 5e3701837..b9aea53cc 100644 --- a/ansible/roles/bootstrap/tasks/partials/win.yml +++ b/ansible/roles/bootstrap/tasks/partials/win.yml @@ -46,3 +46,17 @@ name: Enabled data: 0 type: dword + +- block: + - name: disable Let's Finish Setting up Your Device screen + win_regedit: + path: 'HKCU:\Software\Microsoft\Windows\CurrentVersion\UserProfileEngagement' + name: ScoobeSystemSettingEnabled + data: 0 + type: dword + - name: disable Windows Welcome Experience + win_regedit: + path: 'HKCU:\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager' + name: SubscribedContent-310093Enabled + data: 0 + type: dword