none
Looking for a faster way to create Mail Contacts in Exchange 2010

    Question

  • Hello, when I had Exchange 2003, I would use Active Directory to add email contacts, and it was quick and easy (right click, Exchange Tasks, New Mailbox, done).

    But with 2010, I have to fire up the Exchange Management Console, and use the New Mail Contact "wizard" which takes way too long if I have to enter in more than 1 contact. And it doesn't even give me the option to modify fields like address or phone numbers- I still have to go back to AD and add those in.

    Isn't there a better way to add email contacts???

    Thanks :)
    Max

    Tuesday, May 25, 2010 7:49 PM

Answers

  • Hello, when I had Exchange 2003, I would use Active Directory to add email contacts, and it was quick and easy (right click, Exchange Tasks, New Mailbox, done).

    But with 2010, I have to fire up the Exchange Management Console, and use the New Mail Contact "wizard" which takes way too long if I have to enter in more than 1 contact. And it doesn't even give me the option to modify fields like address or phone numbers- I still have to go back to AD and add those in.

    Isn't there a better way to add email contacts???

    Thanks :)
    Max

    There is much easier and faster way to create mail contacts in bulk  using the Exchange Powershell commands like New-MailContact:

    New-MailContact -Name "Chris Ashton" -ExternalEmailAddress "Chris@tailspintoys.com" -OrganizationalUnit "Marketing"

    http://technet.microsoft.com/en-us/library/bb124519.aspx

    After creating it you can call Set-MailContact

    http://technet.microsoft.com/en-us/library/aa995950.aspx

    You can have a CSV File where u can have Name,ExternalEmailAddress [or some other attributes]

    and then can create all mail contacts using the CSV file like this

    Import-CSV "C:\TestFile.csv" | Foreach{New-MailContact -Name $_.Name -ExternalEmailAddress $_.ExternalEmailAddress -OrganizationalUnit "Marketing"}

    For setting address and phone numbers u will have to use 

    Set-Contact     http://technet.microsoft.com/en-us/library/bb124535.aspx

    Hope this help u.

    Regards,


    Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
    • Marked as answer by Xiu Zhang Monday, May 31, 2010 8:52 AM
    Tuesday, May 25, 2010 8:04 PM

All replies

  • Hello, when I had Exchange 2003, I would use Active Directory to add email contacts, and it was quick and easy (right click, Exchange Tasks, New Mailbox, done).

    But with 2010, I have to fire up the Exchange Management Console, and use the New Mail Contact "wizard" which takes way too long if I have to enter in more than 1 contact. And it doesn't even give me the option to modify fields like address or phone numbers- I still have to go back to AD and add those in.

    Isn't there a better way to add email contacts???

    Thanks :)
    Max

    There is much easier and faster way to create mail contacts in bulk  using the Exchange Powershell commands like New-MailContact:

    New-MailContact -Name "Chris Ashton" -ExternalEmailAddress "Chris@tailspintoys.com" -OrganizationalUnit "Marketing"

    http://technet.microsoft.com/en-us/library/bb124519.aspx

    After creating it you can call Set-MailContact

    http://technet.microsoft.com/en-us/library/aa995950.aspx

    You can have a CSV File where u can have Name,ExternalEmailAddress [or some other attributes]

    and then can create all mail contacts using the CSV file like this

    Import-CSV "C:\TestFile.csv" | Foreach{New-MailContact -Name $_.Name -ExternalEmailAddress $_.ExternalEmailAddress -OrganizationalUnit "Marketing"}

    For setting address and phone numbers u will have to use 

    Set-Contact     http://technet.microsoft.com/en-us/library/bb124535.aspx

    Hope this help u.

    Regards,


    Laeeq Qazi|Team Lead(Exchange + Sharepoint + BES + DynamicsCRM) www.HostingController.com
    • Marked as answer by Xiu Zhang Monday, May 31, 2010 8:52 AM
    Tuesday, May 25, 2010 8:04 PM
  • Thanks for the reply. I have seen the powershell commands, but it seems that it still requires the same amount of time to do as with the wizard. I still would need to manually input -Name, First Name, Last Name, Alias, External Email, and OU for every single mail contact. If the OU is different on the contacts, then I can't use a CSV, so I'd have to copy/paste every single line into the command shell.
    Then, I'd still have to go back again and create a new command to add phone number, address, etc, for each contact.

    It really seems that they made it much more difficult and time consuming :P

     

    Tuesday, May 25, 2010 8:35 PM
  • I would like to add multiple external email addresses does anyone happen to know if this is possible through the shell and if so then how?

    Monday, August 20, 2012 3:28 PM
  • On Mon, 20 Aug 2012 15:28:23 +0000, CBrook1234 wrote:
     
    >I would like to add multiple external email addresses does anyone happen to know if this is possible through the shell and if so then how?
     
    Do you mean you want to add mail-enabled Contacts to the Active
    Directory?
     
    New-MailContact
    Enable-MailContact
    Set-MailContact
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    Monday, August 20, 2012 6:34 PM
  • no to exchange as explained above. I need to add multiple email addresses to each contact for example to contact1 I need to joe@someone.com and joe@someone.de
    Tuesday, August 21, 2012 6:28 AM
  • On Tue, 21 Aug 2012 06:28:10 +0000, CBrook1234 wrote:
     
    >no to exchange as explained above.
     
    Contact objects, mail-enabled or otherwise, are objects in the Active
    Directory.
     
    >I need to add multiple email addresses to each contact for example to contact1 I need to joe@someone.com and joe@someone.de
     
    Then use the get-mailcontact and set-mailcontact. For example:
     
    $a=(get-mailcontact aaaaa).emailaddresses
    $a += 'x@x.y'
    set-mailcontact aaaaa -emailaddresses $a
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    Tuesday, August 21, 2012 2:21 PM
  • One way is to use excel "CONCATENATE" and generate result like "New-MailContact -Name "Name Lastname"  -ExternalEmailAddress email -OrganizationalUnit "OU=Test,DC=ms,DC=com" -Alias Name Lastname" select all lines and copy to powershell.
    Friday, August 09, 2013 8:13 AM