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'))" -WhatIfCannot 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