diff --git a/tasks/section01.yml b/tasks/section01.yml index 97be351..1d9aa7b 100644 --- a/tasks/section01.yml +++ b/tasks/section01.yml @@ -155,11 +155,10 @@ - password - name: "1.1.6 | PATCH | Ensure Relax minimum password length limits is set to Enabled." - ansible.windows.win_regedit: - path: HKLM:\System\CurrentControlSet\Control\SAM - name: RelaxMinimumPasswordLengthLimits - data: 1 - type: dword + community.windows.win_security_policy: + section: System Access + key: RelaxMinimumPasswordLengthLimits + value: 1 when: - win22cis_rule_1_1_6 tags: