Today let’s see how to create mail enabled users in bulk
Create an input file name Contacts1.csv with the following attributes and values as shown below:
Open the Exchange management shell “Run as Administrator” and run the below cmd after copying all contacts to the path of shell
Locate to Scripts Folder as shown below
Command :
Import-Csv “contacts1.csv” | ForEach {New-MailContact -Name $_.Name -Firstname $_.FirstName -LastName $_.LastName -ExternalEmailAddress $_.ExternalEmailAddress -OrganizationalUnit “Domainname/OUname”}
Praveen Kumar
MCTS, MCITP | Exchange Server
Publisher @ Techrid.com