Skip to content

Commit

Permalink
applied recommended changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dalerichardson committed Oct 11, 2023
1 parent 42abfa3 commit 025b547
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ indent_size = 4
[win_lgpo.py]
indent_size = unset

[win_lgpo_ash.py]
indent_size = unset

[*.adml]
indent_size = unset
trim_trailing_whitespace = unset
Expand Down
12 changes: 6 additions & 6 deletions _states/win_lgpo_ash.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,30 +82,30 @@ def present(name, mode=None, value=None, vtype=None, policies=None, **kwargs):
.. code-block:: yaml
Set Registry Value:
ash_lgpo.present:
ash_lgpo.present:
- name: HKLM\Software\Salt\Foo
- mode: set_reg_value
- value: 0
- vtype: REG_DWORD
Set Secedit Value:
ash_lgpo.present:
ash_lgpo.present:
- name: MinimumPasswordAge
- mode: set_secedit_value
- value: 3
Set Multiple Policies In One State:
ash_lgpo.present:
ash_lgpo.present:
- policies:
- policy_type: regpol
- policy_type: regpol
key: HKLM\Software\Salt\Foo
value: 0
vtype: REG_DWORD
- policy_type: regpol
- policy_type: regpol
key: HKLM\Software\Salt\Bar
value: 0
vtype: REG_DWORD
- policy_type: secedit
- policy_type: secedit
name: MinimumPasswordAge
value: 3
"""
Expand Down
4 changes: 2 additions & 2 deletions ash-windows/mss/Templates/MSS-legacy.admx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\EnableDeadGWDetect,4,
MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\EnableICMPRedirect,4,%EnableICMPRedirect%,0
MACHINE\System\CurrentControlSet\Services\Lanmanserver\Parameters\Hidden,4,%HideFromBrowseList%,0
MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\KeepAliveTime,4,%KeepAliveTime%,3,150000|%KeepAliveTime0%,300000|%KeepAliveTime1%,600000|%KeepAliveTime2%,1200000|%KeepAliveTime3%,2400000|%KeepAliveTime4%,3600000|%KeepAliveTime5%,7200000|%KeepAliveTime6%
MACHINE\System\CurrentControlSet\Services\IPSEC\NoDefaultExempt,4,%NoDefaultExempt%,3,0|%NoDefaultExempt0%,1|%NoDefaultExempt1%,2|%NoDefaultExempt2%,3|%NoDefaultExempt3
MACHINE\System\CurrentControlSet\Services\IPSEC\NoDefaultExempt,4,%NoDefaultExempt%,3,0|%NoDefaultExempt0%,1|%NoDefaultExempt1%,2|%NoDefaultExempt2%,3|%NoDefaultExempt3%
MACHINE\System\CurrentControlSet\Services\Netbt\Parameters\NoNameReleaseOnDemand,4,%NoNameReleaseOnDemand%,0
MACHINE\System\CurrentControlSet\Control\FileSystem\NtfsDisable8dot3NameCreation,4,%NtfsDisable8dot3NameCreation%,3,0|%NtfsDisable8dot3NameCreation0%,1|%NtfsDisable8dot3NameCreation1%,2|%NtfsDisable8dot3NameCreation2%,3|%NtfsDisable8dot3NameCreation3%
MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\PerformRouterDiscovery,4,%PerformRouterDiscovery%,0
Expand All @@ -287,6 +287,6 @@ MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\TcpMaxConnectResponse
MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters\TcpMaxDataRetransmissions,4,%TcpMaxDataRetransmissions%,1
MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Security\WarningLevel,4,%WarningLevel%,3,50|%WarningLevel0%,60|%WarningLevel1%,70|%WarningLevel2%,80|%WarningLevel3%,90|%WarningLevel4%
MACHINE\System\CurrentControlSet\Services\Tcpip6\Parameters\DisableIPSourceRouting,4,%DisableIPSourceRoutingIPv6%,3,0|%DisableIPSourceRouting0%,1|%DisableIPSourceRouting1%,2|%DisableIPSourceRouting2%
MACHINE\System\CurrentControlSet\Services\Tcpip6\Parameters\TcpMaxDataRetransmissions ,4,%TcpMaxDataRetransmissionsIPv6%,
MACHINE\System\CurrentControlSet\Services\Tcpip6\Parameters\TcpMaxDataRetransmissions ,4,%TcpMaxDataRetransmissionsIPv6%,1
;========= End of MSS Registry Values =========
-->

0 comments on commit 025b547

Please sign in to comment.