Bulk create mail contacts based on a CSV file
Here's how you can use the Exchange management shell to bulk create mail contacts based on a CSV file.Create a CSV file with the following colums:
displayName,FirstName,LastName,Emailaddress
(If you have Swedish characters in the CSV file you have to save the file in UTF8.)
Use the following shell command to import and create the contacts based on the CSV file:
Import-Csv contacts.csv | ForEach { New-MailContact -Name $_.displayName -Firstname $_.Firstname -Lastname $_.Lastname -ExternalEmailAddress $_.Emailaddress -OrganizationalUnit "MyDomain.com/Contacts" }
For a complete list of parameters that you can use to create mail-enabled contacts go to:
http://technet.microsoft.com/en-us/library/bb124519.aspx