MS Exchange 2007- Adding email addresses thru powershell

For all those guys who are beginers in powershell , here is a cool tip:

Fist get the mail box thru Get-mailbox command

$mailbox = get-mailbox vikas

Second get in to multivalued attribute & add one more value

$mailbox.emailaddresses+=”abc@xyz.com”,a.bc@xyz.com”

Third set the value using pipe & set mailbox

$mailbox | set-mailbox

Advertisement

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 )

Facebook photo

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

Connecting to %s