mirror of
https://git.ecdf.ed.ac.uk/win_automation/windows-ansible.git
synced 2026-10-26 08:47:21 +00:00
change lockout threshhold
This commit is contained in:
1 parent
74b5c802a2
commit
7dde0c4f70
1 file changed
+1
-1
@@ -207,7 +207,7 @@ Set-GPRegistryValue -Name "Default Domain Policy" -ValueName "ConsentPromptBehav
|
||||
#enable-folderredirection -AllFolder
|
||||
|
||||
#Domain Password Policy
|
||||
Set-ADDefaultDomainPasswordPolicy -identity $DomainID -MaxPasswordAge "42" -MinPasswordAge "1" -MinPasswordLength "12" -PasswordHistoryCount "24" -ComplexityEnabled $true -ReversibleEncryptionEnabled $false -LockoutThreshold "0"
|
||||
Set-ADDefaultDomainPasswordPolicy -identity $DomainID -MaxPasswordAge "42" -MinPasswordAge "1" -MinPasswordLength "12" -PasswordHistoryCount "24" -ComplexityEnabled $true -ReversibleEncryptionEnabled $false -LockoutThreshold "5"
|
||||
Get-LocalUser Guest | Disable-LocalUser
|
||||
#Get-localuser Administrator | Disable-LocalUser
|
||||
|
||||
|
||||
Reference in new issue
Block a user