How to mail enable already created AD users in Bulk

Requirement

Exchange management Shell

AD OU Name

Steps

Open Exchange management shell

Get a list of users who is not Mailbox Enabled for a Particular OU, & belong to a particular Department. For this we need to use Filter syntax. The command will look like below

get-user –organizationalUnit people | where-object{$_.RecipientType –eq “User” -and $_.department –eq “Sales”}

Now we will enable/create mailbox for these users, using the below syntax

get-user –organizationalUnit people | where-object {$_.RecipientType –eq “User” -and $_.department –eq “Sales”} | Enable-Mailbox –Database “EXCHANGE1\Mailbox Database” | get-mailbox | select name,windowsemailaddress,database

A good link to follow is below

http://exchangepedia.com/2006/12/exchange-server-2007-bulk-mailbox-enabling-users-using-exchange-shell.html

Leave a Reply

Your email address will not be published. Required fields are marked *