密码必须符合复杂性要求


“密码必须符合复杂性要求”确定是否加强密码的复杂性。如果启用该设置,则用户密码符合以下要求:
密码长度至少有 6 个字符。
密码至少包含以下 5 类字符中的 3 类字符:

英语大写字母 (A - Z)

英语小写字母 (a - z)   

10 个基数数字 (0 - 9)   

非字母数字(例如:!、$、# 或 %)   

Unicode 字符

密码不得包含三个或三个以上来自用户帐户名中的字符。

如果帐户名长度少于 3 个字符,此检查便不会被执行,因为密码被拒绝的可能性相当高。检查用户全名时,有几个字符被看作分隔符,分隔符将名称分隔成单独的标记,这些分隔符为:逗号、句点、短划线/连字符、下划线、空格、磅字符和制表符。对于每个标记,如果长度有 3 个或以上的字符,则在密码中搜索该标记;如果存在该标记,则拒绝更改密码。例如,姓名“Erin M. Hagens”将拆分为三个标记:“Erin”、“M”和“Hagens”。由于第二个标记的长度只有一个字符,从而被忽略。因此,该用户密码中任何位置都不能包含“erin”或“hagens”子字符串。所有这些检查都区分大小写形式。

这些复杂性要求在密码更改或新密码创建时强制执行。建议启用该设置。

 

 

 

3、防火墙是否启用 4、是否存在默认的管理员账户 5、是否启用UAC(用户账户控制) 6、是否启用BitLocker(数据加密) 7、是否启用Windows更新 8、是否启用远程桌面连接 9、是否启用自动登录功能 10、是否启用自动运行功能。 以下是基于powershell的Windows基线核查脚本: #检查组策略中是否禁用来宾账户状态 $GuestAccount = Get-WmiObject -Class Win32_UserAccount -Filter "Name='Guest'" if ($GuestAccount.Disabled) { Write-Host "Guest account is disabled." -ForegroundColor Green } else { Write-Host "Guest account is not disabled." -ForegroundColor Red } #检查组策略中是否启用密码必须符合复杂性要求 $ComplexityPolicy = Get-WmiObject -Class Win32_PasswordSetting if ($ComplexityPolicy.PasswordComplexity) { Write-Host "Password complexity policy is enabled." -ForegroundColor Green } else { Write-Host "Password complexity policy is not enabled." -ForegroundColor Red } #检查防火墙是否启用 $FirewallStatus = Get-Service -Name MpsSvc if ($FirewallStatus.Status -eq "Running") { Write-Host "Firewall is enabled." -ForegroundColor Green } else { Write-Host "Firewall is not enabled." -ForegroundColor Red } #检查是否存在默认的管理员账户 $AdminAccount = Get-WmiObject -Class Win32_UserAccount -Filter "Name='Administrator'" if ($AdminAccount.SID -eq "S-1-5-21-958484058-4061377436-1996490449-500") { Write-Host "Default Administrator account exists." -ForegroundColor Red } else { Write-Host "Default Administrator account does not exist." -ForegroundColor Green } #检查是否启用UAC(用户账户控制) $UACStatus = Get-WmiObject -Class Win32_UserAccountControlSetting if ($UACStatus.EnableLUA) { Write-Host "UAC is enabled." -ForegroundColor Green } else { Write-Host "UAC is not enabled." -ForegroundColor Red } #检查是否启用BitLocker(数据加密) $BitLockerStatus = Get-Service -Name BDESVC if ($BitLockerStatus.Status -eq "Running") { Write-Host "BitLocker is enabled." -ForegroundColor Green } else { Write-Host "BitLocker is not enabled." -ForegroundColor Red } #检查是否启用Windows更新 $WindowsUpdateStatus = Get-Service -Name wuauserv if ($WindowsUpdateStatus.Status -eq "Running") { Write-Host "Windows Update is enabled." -ForegroundColor Green } else { Write-Host "Windows Update is not enabled." -ForegroundColor Red } #检查是否启用远程桌面连接 $RemoteDesktopStatus = Get-WmiObject -Class Win32_TerminalServiceSetting -Namespace root\cimv2\terminalservices if ($RemoteDesktopStatus.AllowTSConnections) { Write-Host "Remote Desktop is enabled." -ForegroundColor Green } else { Write-Host "Remote Desktop is not enabled." -ForegroundColor Red } #检查是否启用自动登录功能 $AutoLogonStatus = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name AutoAdminLogon if ($AutoLogonStatus.AutoAdminLogon -eq "1") { Write-Host "Auto Logon is enabled." -ForegroundColor Red } else { Write-Host "Auto Logon is not enabled." -ForegroundColor Green } #检查是否启用自动运行功能 $AutoRunStatus = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" -Name NoDriveTypeAutoRun if ($AutoRunStatus.NoDriveTypeAutoRun -eq "0") { Write-Host "Auto Run is enabled." -ForegroundColor Red } else { Write-Host "Auto Run is not enabled." -ForegroundColor Green }
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值