Changing the email address for public folder


It’s just a reminder how to change an email address for mail-enabled public folder using PowerShell.

There in no way to modify the email address, so the new one should be added and the old one should be removed

$PF = Get-MailPublicFolder “old_email@domain.com”
$PF.EmailAddresses += “new_email@domain.com”
$PF.EmailAddresses.Remove(“old_email@domain.com”)

$PF | Set-MailPublicFolder

If necessary, primary email address can be set up this way:

Set-MailPublicFolder “new_email@domain.com” -EmailAddressPolicyEnabled $FALSE -PrimarySmtpAddress “new_email@domain.com”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: