locked
Create an Address List with Mail Contacts RRS feed

  • Вопрос

  • 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
       List
        + PSComputerName        : DC1.subdomain.domain.com

    14 июля 2020 г. 16:21

Ответы

  • It's MailContact, not MailContactS.
    • Помечено в качестве ответа Luizmg 14 июля 2020 г. 18:07
    14 июля 2020 г. 17:57

Все ответы