Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Aug 23, 2024
1 parent a38a821 commit 38dd3e5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# PasswordSolution Release History

## 1.3.2 - 2024.08.23
- Improvement on logging
- Small improvement to message

## 1.3.1 - 2024.08.23
- Fixes `FilterOrganizationalUnit` not working properly
- Add more logs
Expand Down
2 changes: 1 addition & 1 deletion PasswordSolution.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Description = 'This module allows the creation of password expiry emails for users, managers, administrators, and security according to defined templates. It''s able to work with different rules allowing to fully customize who gets the email and when.'
FunctionsToExport = @('Find-Password', 'Find-PasswordNotification', 'Find-PasswordQuality', 'New-PasswordConfigurationEmail', 'New-PasswordConfigurationExternalUsers', 'New-PasswordConfigurationOption', 'New-PasswordConfigurationReport', 'New-PasswordConfigurationRule', 'New-PasswordConfigurationRuleReminder', 'New-PasswordConfigurationTemplate', 'New-PasswordConfigurationType', 'Show-PasswordQuality', 'Start-PasswordSolution')
GUID = 'c58ff818-1de6-4500-961c-a243c2043255'
ModuleVersion = '1.3.1'
ModuleVersion = '1.3.2'
PowerShellVersion = '5.1'
PrivateData = @{
PSData = @{
Expand Down
2 changes: 1 addition & 1 deletion Private/Invoke-PasswordRuleProcessing.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@
}
}
} else {
if ($Rule.SendToManager.Manager) {
if ($Rule.SendToManager.Manager -and $Rule.SendToManager.Manager.Enable -eq $true) {
# Manager rule is enabled but manager is not enabled or has no email
if ($Logging.NotifyOnUserMatchingRuleForManagerButNotCompliant) {
Write-Color -Text "[i]", " User (manager rule) ", $User.DisplayName, " (", $User.UserPrincipalName, ")", " days to expire: ", $User.DaysToExpire, ", manager status: ", $User.ManagerStatus, ". Reason to skip: ", "No manager or manager is not enabled or manager has no email " -Color Yellow, White, Yellow, White, Yellow, White, White, Red, White, Red, White, Red
Expand Down
2 changes: 1 addition & 1 deletion Public/New-PasswordConfigurationRuleReminder.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
)
if ($ComparisonType -in 'eq', 'lt', 'gt') {
if ($ExpirationDays.Count -gt 1) {
throw "Only one number for 'ExpirationDays' can be specified when using comparison types 'eq', 'lt', and 'gt'."
throw "Only one number for 'ExpirationDays' can be specified for RuleReminder when using comparison types 'eq', 'lt', and 'gt'. Current values are $($ExpirationDays -join ', ') for '$ComparisonType'"
} else {
$ExpirationDaysToUse = $ExpirationDays[0]
}
Expand Down

0 comments on commit 38dd3e5

Please sign in to comment.