Skip to content

Commit fa596fb

Browse files
committed
Merge branch 'patch-22' of https://github.com/carlosmayol/azure-stack-docs-pr into secnu
2 parents 885a0a8 + 6d80487 commit fa596fb

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

azure-local/manage/manage-secure-baseline.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,23 @@ The following table explains the rules that aren't compliant and the rationale o
4444
| Interactive logon: Message title for users attempting to log on| Not Compliant | Warning - "" is equal to "" |This must be defined by customer, it does not have drift control enabled.|
4545
| Minimum password length | Not Compliant | Critical - Seven is less than the minumum value of 14. | This must be defined by customer, it does not have drift control enabled in order to allow this setting to align with your organization's policies.|
4646

47+
### Fixing the compliance of the above rules:
48+
49+
To fix the above rules you can follow the next commands, altough you can use any other tool of your preference.
50+
51+
1- Legal notice: Use the below two commands to define a notice when users are logging in the Servers: Values defined is your oranization's choice.
52+
53+
```PowerShell
54+
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "LegalNoticeCaption" -Value "Legal Notice"
55+
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "LegalNoticeText" -Value "LegalNoticeText"
56+
```
57+
58+
2 - Minimum password lenght: Use the below command to set the minimum password lenght policy to 14 characthers on the server. The default value is 7, and any value below 14 will still be flagged by the monitoring baseline policy.
59+
60+
```PowerShell
61+
net accounts /minpwlen:14
62+
```
63+
4764
## Manage security defaults with PowerShell
4865

4966
With drift protection enabled, you can only modify nonprotected security settings. To modify protected security settings that form the baseline, you must first disable drift protection. To view and download the complete list of security settings, see [Security Baseline](https://aka.ms/hci-securitybase).

0 commit comments

Comments
 (0)