none
Exchange server 2016 create Mail contact from CSV to exchange through powershell 500 contact RRS feed

  • Question

  • Dear all

    i have tried many times to create Mail-Contact through power shell command only the name has been create with the External EmailAddress

    check this command and please connect me because there is some thing wrong.

    C:\>Import-CSV "c:\Contacts-Exported.csv" | Foreach{New-MailContact -Name $_.Name -ExternalEmailAddress $_.ExternalEmailAddress -OrganizationalUnit "Zahid New"}
    Cannot bind argument to parameter 'ExternalEmailAddress' because it is null.
        + CategoryInfo          : InvalidData: (:) [New-MailContact], ParameterBindingValidationException
        + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,New-MailContact

    Wednesday, January 22, 2020 6:30 AM

All replies