Powershell Script to Find, Delete, & Create Contacts

Hello,

I have been tasked with creating about 160 Exchange contacts. I'm finding that some of the email address listed are secondary email addresses for other users. I am in need of assistance for the following.

- Determine which addresses on my list are already in Exchange as secondary SMTP addresses for different contacts/mailboxes.

- For the addresses that are not in Exchange I will need to mass create them.

- For the existing contacts, I will need to delete the secondary SMTP that matches ones in my list and create a new contact for the SMTP.

I have already created a CSV of the contacts. Really not sure how to work this one. Any assistance would be appreciated.

Thanks in advance,

February 3rd, 2015 1:56pm

Hi,

From your description, I recommend you use the following cmdlet to get all the existed SMTP addresses, and then compare them with the email addresses you want to create. Verify if there is any duplicated addresses.

Get-Mailbox -Filter {emailaddresses -gt 1} | Select EmailAddresses

Hope this can be helpful to you.

Best regards,

Free Windows Admin Tool Kit Click here and download it now
February 4th, 2015 2:54am

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

Other recent topics Other recent topics