EvotecIT / PasswordSolution

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simplify global variables so numbers can be better utilized by users without doing filtering themselves

PrzemyslawKlys opened this issue · comments

        EmailList {
            EmailListItem -Text "Found users matching rule to send emails: ", $SummaryUsersEmails.Count
            EmailListItem -Text "Sent emails to users: ", ($SummaryUsersEmails | Where-Object { $_.Status -eq $true }).Count
            EmailListItem -Text "Couldn't send emails because of no email: ", ($SummaryUsersEmails | Where-Object { $_.Status -eq $false -and $_.StatusError -eq 'No email address for user' }).Count
            EmailListItem -Text "Couldn't send emails because other reasons: ", ($SummaryUsersEmails | Where-Object { $_.Status -eq $false -and $_.StatusError -ne 'No email address for user' }).Count
            EmailListItem -Text "Sent emails to managers: ", $SummaryManagersEmails.Count
            EmailListItem -Text "Sent emails to security: ", $SummaryEscalationEmails.Count
        }