Create an Address List with Mail Contacts RRS feed

  • Question

  • Hi everyone,

    I need some help, I have Mail Contacts created on E2K13 and I am trying to create an Address List of these Mail Contacts, based on "Company" attribute, using the following command but the error is displayed:

    New-AddressList -Name "My Group" -RecipientFilter "((RecipientType -eq 'MailContacts') -and (Company -like 'Group 1') -or (Company -like 'Group 2'))"  -WhatIf
    Cannot bind parameter 'RecipientFilter' to the target. Exception setting "RecipientFilter": "The value "MailContacts"
    could not be converted to type Microsoft.Exchange.Data.Directory.Recipient.RecipientType."
        + CategoryInfo          : WriteError: (:) [New-AddressList], ParameterBindingException
        + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.Exchange.Management.SystemConfigurationTasks.NewAddress
        + PSComputerName        : DC1.subdomain.domain.com

    Tuesday, July 14, 2020 4:21 PM


  • It's MailContact, not MailContactS.
    • Marked as answer by Luizmg Tuesday, July 14, 2020 6:07 PM
    Tuesday, July 14, 2020 5:57 PM

All replies