複雜密碼政策取消
secedit /export /cfg C:\new.cfg powershell -Command "(Get-Content C:\new.cfg) | ForEach-Object { $_ -replace \"PasswordComplexity = \d\", \"PasswordComplexity = 0\" } | Set-Content C:\new1.cfg" rename "%windir%\security\database\secedit.sdb" _secedit.sdb secedit /configure /db "%windir%\security\database\new.sdb" /cfg C:\new1.cfg /areas SECURITYPOLICY del C:\new.cfg C:\new1.cfg gpupdate /force
留言
張貼留言