From c056aa8dd86c2fa4c00e4b66e3095df86cf8ae92 Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 31 Dec 2022 19:10:47 +0100 Subject: [PATCH] disable wddm --- tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index eb1e3f2..7e74710 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -48,3 +48,8 @@ script: 'Add-LocalGroupMember -Group "Remote Desktop Users" -Member {{ win__special_rdp_user }}' when: win__allow_special_rdp_user | bool changed_when: _a.changed + +- name: Windows RDP disable wddm + ansible.windows.win_powershell: + script: 'REG ADD “HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services” /v “fEnableWddmDriver” /t REG_DWORD /d 0 /f' + changed_when: _a.changed