From 40c2fb267ef03a880050b87ca122bfadeea3c6f3 Mon Sep 17 00:00:00 2001 From: Brian Reid <31985319+brianreidc7@users.noreply.github.com> Date: Wed, 26 Apr 2023 17:11:25 +0100 Subject: [PATCH 1/2] Add better support for email address policies Added two columns to table to report more useful info --- Start-ExchangeRecipientAdminCenter.ps1 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Start-ExchangeRecipientAdminCenter.ps1 b/Start-ExchangeRecipientAdminCenter.ps1 index 289d387..94e7453 100644 --- a/Start-ExchangeRecipientAdminCenter.ps1 +++ b/Start-ExchangeRecipientAdminCenter.ps1 @@ -196,13 +196,15 @@ try { # Prepare email address policies list $HTMLROWS = "" - foreach ($Item in (Get-EmailAddressPolicy | Select Name, Priority, RecipientFilter)) { + foreach ($Item in (Get-EmailAddressPolicy | Select Name, Priority, RecipientFilter,EnabledPrimarySMTPAddressTemplate,EnabledEmailAddressTemplates)) { $HTMLROWS += " $($Item.Name) $($Item.Priority) $($Item.RecipientFilter) + $($Item.EnabledPrimarySMTPAddressTemplate) + $($Item.EnabledEmailAddressTemplates) "; } @@ -341,4 +343,4 @@ finally { $LISTENER.Stop() $LISTENER.Close() "$(Get-Date -Format s) Powershell webserver stopped." -} \ No newline at end of file +} From 1fa173b590efc7054abd5a153a1b9698049ed3a9 Mon Sep 17 00:00:00 2001 From: Brian Reid <31985319+brianreidc7@users.noreply.github.com> Date: Wed, 26 Apr 2023 17:21:09 +0100 Subject: [PATCH 2/2] Update Start-ExchangeRecipientAdminCenter.ps1 --- Start-ExchangeRecipientAdminCenter.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Start-ExchangeRecipientAdminCenter.ps1 b/Start-ExchangeRecipientAdminCenter.ps1 index 94e7453..db7d10a 100644 --- a/Start-ExchangeRecipientAdminCenter.ps1 +++ b/Start-ExchangeRecipientAdminCenter.ps1 @@ -225,6 +225,7 @@ try { $($Item.Name) $($Item.DomainName) $($Item.DomainType) + $($Item.Default) "; }