Fixing handling errors in datasets

This commit is contained in:
2025-10-21 15:34:44 +02:00
parent 353352eeb2
commit 964e91d20f
3 changed files with 7 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
##################################################
## Project: Elysium ##
## File: Test-WeakADPasswords.ps1 ##
## Version: 1.3.1 ##
## Version: 1.3.2 ##
## Support: support@cqre.net ##
##################################################
@@ -355,7 +355,7 @@ function Test-WeakADPasswords {
if ($_.PSObject.Properties.Name -contains 'Enabled') { $_.Enabled } else { $true }
}
}
$testResults = $accounts | Test-PasswordQuality -WeakPasswordHashesFile $FilePath
$testResults = $accounts | Test-PasswordQuality -WeakPasswordHashesSortedFile $FilePath
Write-Verbose "Password quality test completed."
} catch {
Write-Error ("An error occurred while testing passwords: {0}" -f $_.Exception.Message)