Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

windows server 2016 powershell override password complexity

secedit /export /cfg c:secpol.cfg
(gc C:secpol.cfg).replace("PasswordComplexity = 1", "PasswordComplexity = 0") | Out-File C:secpol.cfg
secedit /configure /db c:windowssecuritylocal.sdb /cfg c:secpol.cfg /areas SECURITYPOLICY
rm -force c:secpol.cfg -confirm:$false
Source by www.avoiderrors.com #
 
PREVIOUS NEXT
Tagged: #windows #server #powershell #override #password #complexity
ADD COMMENT
Topic
Name
3+3 =