>account.infecho [System Access] >>account.infecho MinimumPasswordLength=6 >>account.inf REM 修改帐._windows10基线检查加固脚本">
赞
踩
Windows的批处理脚本(一键加固:根据自身要求修改)
- echo 现在开始Windows安全加固,确认请按任意键
- pause
- echo [version] >account.inf REM帐户口令授权配置模块
- echo signature="$CHICAGO$" >>account.inf
- echo [System Access] >>account.inf
- echo MinimumPasswordLength=6 >>account.inf REM 修改帐户密码最小长度为6
- echo PasswordComplexity=1 >>account.inf REM 开启帐户密码复杂性要求
- echo MaximumPasswordAge=90 >>account.inf REM 修改帐户密码最长留存期为90天
- echo PasswordHistorySize=5 >>account.inf REM 修改强制密码历史为5次
- echo EnableGuestAccount=0 >>account.inf REM 禁用Guest帐户
- echo LockoutBadCount=6 >>account.inf REM 设定帐户锁定阀值为6次
- secedit /configure /db account.sdb /cfg account.inf /log account.log
- del account.*
-
- echo [version] >rightscfg.inf
- REM 授权配置
- echo signature="$CHICAGO$" >>rightscfg.inf
- echo [Privilege Rights] >>rightscfg.inf
- echo seremoteshutdownprivilege=Administrators >&
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。