From 725737321dc863292b6aa90e31d7c844e32d3c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Fele-=C5=BDor=C5=BE?= Date: Wed, 1 Oct 2025 23:58:09 +0200 Subject: [PATCH] Fix broken display settings --- roles/ad_joined/tasks/main_win.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/ad_joined/tasks/main_win.yml b/roles/ad_joined/tasks/main_win.yml index f2de3a9..748036b 100644 --- a/roles/ad_joined/tasks/main_win.yml +++ b/roles/ad_joined/tasks/main_win.yml @@ -52,6 +52,16 @@ win_command: wuauclt.exe /updatenow ignore_errors: yes +- name: Fix broken display settings - start CDPSvc + win_regedit: + path: "{{item}}" + name: "Start" + type: dword + data: 0x00000002 + with_items: + - HKLM\SYSTEM\CurrentControlSet\Services\CDPSvc + - HKLM\SYSTEM\CurrentControlSet\Services\CDPUserSvc + - name: Reboot win_command: "shutdown /r" when: domain_state.reboot_required