|
233 | 233 | - patch |
234 | 234 |
|
235 | 235 | - name: "SCORED | 2.2.18 | PATCH | (L1) Ensure 'Create symbolic links' is set to 'Administrators, NT VIRTUAL MACHINE/Virtual Machines' (MS only)" |
236 | | - win_user_right: |
237 | | - name: SeCreateSymbolicLinkPrivilege |
238 | | - users: |
239 | | - - Administrators |
240 | | - - NT VIRTUAL MACHINE\Virtual Machines |
241 | | - action: set |
| 236 | + block: |
| 237 | + - name: "SCORED | 2.2.18 | PATCH | (L1) Ensure 'Create symbolic links' is set to 'Administrators, NT VIRTUAL MACHINE/Virtual Machines' (MS only) | No Hyper-v" |
| 238 | + win_user_right: |
| 239 | + name: SeCreateSymbolicLinkPrivilege |
| 240 | + users: |
| 241 | + - Administrators |
| 242 | + action: set |
| 243 | + when: not is_hyperv_installed |
| 244 | + |
| 245 | + - name: "SCORED | 2.2.18 | PATCH | (L1) Ensure 'Create symbolic links' is set to 'Administrators, NT VIRTUAL MACHINE/Virtual Machines' (MS only) | With Hyper-v" |
| 246 | + win_user_right: |
| 247 | + name: SeCreateSymbolicLinkPrivilege |
| 248 | + users: |
| 249 | + - Administrators |
| 250 | + - NT VIRTUAL MACHINE\Virtual Machines |
| 251 | + action: set |
| 252 | + when: is_hyperv_installed |
242 | 253 | when: |
243 | 254 | - rule_2_2_18 |
244 | | - - ansible_windows_domain_role == "Member server" |
| 255 | + - not ansible_windows_domain_role == "Primary domain controller" |
245 | 256 | tags: |
246 | 257 | - level1-memberserver |
247 | 258 | - rule_2.2.18 |
|
285 | 296 | action: set |
286 | 297 | when: |
287 | 298 | - rule_2_2_21 |
288 | | - - ansible_windows_domain_member |
| 299 | + - not ansible_windows_domain_role == "Primary domain controller" |
289 | 300 | tags: |
290 | 301 | - level1-memberserver |
291 | 302 | - rule_2.2.21 |
|
442 | 453 | action: set |
443 | 454 | when: |
444 | 455 | - rule_2_2_32 |
445 | | - - ansible_windows_domain_member |
| 456 | + - not ansible_windows_domain_role == "Primary domain controller" |
446 | 457 | tags: |
447 | 458 | - level1-memberserver |
448 | 459 | - rule_2.2.32 |
|
654 | 665 | when: |
655 | 666 | - rule_2_3_1_1 |
656 | 667 | - not ansible_windows_domain_role == "Primary domain controller" |
| 668 | + - disruption_high |
657 | 669 | tags: |
658 | 670 | - level1-memberserver |
659 | 671 | - rule_2.3.1.1 |
|
827 | 839 | type: dword |
828 | 840 | when: |
829 | 841 | - rule_2_3_6_1 |
830 | | - - not ansible_windows_domain_role == "Primary domain controller" |
| 842 | + - ansible_windows_domain_role == "Member Server" |
831 | 843 | tags: |
832 | 844 | - level1-domaincontroller |
833 | 845 | - level1-memberserver |
|
842 | 854 | type: dword |
843 | 855 | when: |
844 | 856 | - rule_2_3_6_2 |
845 | | - - not ansible_windows_domain_role == "Primary domain controller" |
| 857 | + - ansible_windows_domain_role == "Member Server" |
846 | 858 | tags: |
847 | 859 | - level1-domaincontroller |
848 | 860 | - level1-memberserver |
|
978 | 990 | type: string |
979 | 991 | when: |
980 | 992 | - rule_2_3_7_6 |
981 | | - - not ansible_windows_domain_role == "Primary domain controller" |
| 993 | + - ansible_windows_domain_role == "Member server" |
982 | 994 | tags: |
983 | 995 | - level2-memberserver |
984 | 996 | - rule_2.3.7.6 |
|
1123 | 1135 | type: dword |
1124 | 1136 | when: |
1125 | 1137 | - rule_2_3_9_5 |
1126 | | - - ansible_windows_domain_role == "Member server" |
| 1138 | + - not ansible_windows_domain_role == "Primary domain controller" |
1127 | 1139 | tags: |
1128 | 1140 | - level1-memberserver |
1129 | 1141 | - rule_2.3.9.5 |
|
1240 | 1252 | win_regedit: |
1241 | 1253 | path: HKLM:\System\Currentcontrolset\Control\Securepipeservers\Winreg\Allowedpaths |
1242 | 1254 | name: "Machine" |
1243 | | - data: ['System\CurrentControlSet\Control\Print\Printers', 'System\CurrentControlSet\Services\Eventlog', 'Software\Microsoft\OLAP Server', 'Software\Microsoft\Windows NT\CurrentVersion\Print', 'Software\Microsoft\Windows NT\CurrentVersion\Windows', 'System\CurrentControlSet\Control\ContentIndex', 'System\CurrentControlSet\Control\Terminal Server', 'System\CurrentControlSet\Control\Terminal Server\UserConfig', 'System\CurrentControlSet\Control\Terminal Server\DefaultUserConfiguration', 'Software\Microsoft\Windows NT\CurrentVersion\Perflib', 'System\CurrentControlSet\Services\WINS', 'System\CurrentControlSet\Services\CertSvc'] |
| 1255 | + data: ['System\CurrentControlSet\Control\Print\Printers', 'System\CurrentControlSet\Services\Eventlog', 'Software\Microsoft\OLAP Server', 'Software\Microsoft\Windows NT\CurrentVersion\Print', 'Software\Microsoft\Windows NT\CurrentVersion\Windows', 'System\CurrentControlSet\Control\ContentIndex', 'System\CurrentControlSet\Control\Terminal Server', 'System\CurrentControlSet\Control\Terminal Server\UserConfig', 'System\CurrentControlSet\Control\Terminal Server\DefaultUserConfiguration', 'Software\Microsoft\Windows NT\CurrentVersion\Perflib', 'System\CurrentControlSet\Services\WINS', 'System\CurrentControlSet\Services\CertSvc', 'System\CurrentControlSet\Services\SysmonLog'] |
1244 | 1256 | type: multistring |
1245 | 1257 | when: rule_2_3_10_9 |
1246 | 1258 | tags: |
|
1487 | 1499 | - name: "SCORED | 2.3.17.2 | PATCH | (L1) Ensure 'User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode' is set to 'Prompt for consent on the secure desktop'" |
1488 | 1500 | win_regedit: |
1489 | 1501 | path: HKLM:\Software\Microsoft\Windows\Currentversion\Policies\System |
1490 | | - name: EnableUIADesktopToggle |
1491 | | - data: 0 |
| 1502 | + name: ConsentPromptBehaviorAdmin |
| 1503 | + data: 2 |
1492 | 1504 | type: dword |
1493 | 1505 | when: rule_2_3_17_2 |
1494 | 1506 | tags: |
|
0 commit comments