Email Address Policy – Power Shell Management on Exchange 2013

Actually, you can manage it with using GUI that means probably you will not use Power Shell too much.

First Command is to know what we have, so Get command

Get-EmailAddressPolicy

clip_image001

If this information is not enough for you and you want to know more details about your policies,

Get-EmailAddressPolicy |fl

clip_image002

Let’s edit default policy

Set-EmailAddressPolicy –identity “Default Policy” –EnabledEmailAddressTemplates “SMTP: %g.%s@mslab.int”

clip_image003

Using GUI, changes must be applied. If Power Shell is being used, you must update your policy

Get-EmailAddressPolicy | Update-EmailAddressPolicy

clip_image004

Let’s mention about what is %g or %s that are written above

This table copied from Technet

Variable

Value

%g

Given name (first name)

%i

Middle initial

%s

Surname (last name)

%d

Display name

%m

Exchange alias

%xs

Uses the first x letters of the surname. For example, if x = 2, the first two letters of the surname are used.

%xg

Uses the first x letters of the given name. For example, if x = 2, the first two letters of the given name are used.

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

Blog at WordPress.com.

Up ↑

%d bloggers like this: