We’re launching free support for BYOD Android devices and looking for early feedback. Interested?
This policy setting determines the least number of characters that make up a password for a user account.
Create or edit a configuration profile with the following information:
Create or edit the following script and configure it to run when the check fails:
Use the policy below to verify:
SELECT 1 FROM security_profile_info WHERE minimum_password_length >= 14;
$netAccountsOutput = net accounts
$minPwdLine = $netAccountsOutput | Where-Object {$_ -match "Minimum password length"}
if ($minPwdLine -match "Minimum password length:\s*(\d+)") {
$minPasswordLength = [int]$matches[1]
if ($minPasswordLength -ge 14) {
Write-Output "1"
}
}
PowerShell commands are currently work in progress, contributions welcome.
Bash commands are currently work in progress, contributions welcome.