PowerShell - New mailcontact - two objects cannot have the same proxy address

Hello,

I import contacts via this command:

import-csv c:\import4.csv -Delimiter ';' | foreach { new-mailcontact -alias $_.Alias -name $_.DisplayName -ExternalEmailAddress $_.EmailAddress -OrganizationalUnit domaine.com/architecture/utilisateurs/Contacts}

My problem is that some contacts have the same email address.
How creating an email address even if it already exists?

Thank You !


  • Edited by Bartoch 22 hours 33 minutes ago
July 30th, 2015 4:48am

Hi Bartoch,

You can't create 2 mail enabled object with same email address. This is how it works.

Please let us know, what exactly is your requirement and what is it you are trying to do.

Why do you want duplicate contacts with same email addresses.

Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 8:14am

For example, a couple has the same email address.

The husband and wife uses the same email address.

CSV file:

Alias;Name;prenom;EmailAddress;DisplayName
J08476;ADBA;Johanna;test@hoo.fr;ADBA Johanna
J02687;ADBA;Jean-Laurent;test@hoo.fr;ADBA Jean-Laurent

July 30th, 2015 8:41am

Email address cannot be same for 2 mail contacts.
Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 9:40am

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

Other recent topics Other recent topics