Script for mail enabling contacts on Excahnge 2007
Hi What's in your CSV file? Just the email address? And about their OU, are they same? The sample script for CSV with Name, Alias, Email Address is Import-Csv Contacts.csv | ForEach-Object { New-MailContact -Name $_."Name" -ExternalEmailAddress $_."Email-Address" -FirstName $_."FirstName" -LastName $_."LastName" -OrganizationalUnit "OU\Email\External Contact Records" -Alias $_."alias" } Cheers Zi Feng Zi Feng TechNet Community Support
March 2nd, 2012 5:16am

Hi What's in your CSV file? Just the email address? And about their OU, are they same? The sample script for CSV with Name, Alias, Email Address is Import-Csv Contacts.csv | ForEach-Object { New-MailContact -Name $_."Name" -ExternalEmailAddress $_."Email-Address" -FirstName $_."FirstName" -LastName $_."LastName" -OrganizationalUnit "OU\Email\External Contact Records" -Alias $_."alias" } Cheers Zi Feng Zi Feng TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
April 28th, 2012 9:23pm

Hi All, I have approximately 2,000 contacts that I want to be mail enabled on exchange 2007. Is there a script for this? I have all of their email address on a csv. I can though put all of them in a single OU but this also consume a lot of time. Please advice. Thanks, ReyNone
April 28th, 2012 10:28pm

Hi, you can try like this.. $csv_info | foreach {new-mailcontact -alias $_.Logon -ExternalEmailAddress $_.Email -name $_.DisplayName} http://www.telnetport25.com/2011/09/contact-masterbulk-import-of-mail-enabled-contacts-for-exchange-2007-and-2010/ http://exchangepedia.com/2006/12/exchange-server-2007-bulk-mailbox-enabling-users-using-exchange-shell.htmlKottees : My Blog : Please mark it as an answer if it really helps you.
Free Windows Admin Tool Kit Click here and download it now
April 28th, 2012 11:32pm

Is there other way that do'nt use other third party applications just the powershell only? Thanks, ReyNone
April 29th, 2012 12:15am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics