New-TransportRule ADComparisonAttribute

Status
Not open for further replies.
E

EASF-BR

Can anybody help me with the sintax for New-TransportRule using ADComparisonAttribute?

I want to filter the rule to be just applied to email of the user that have ADAttribute Country = United States, but I'm not finding the correct syntax.

I'm trying this:

New-TransportRule -Name 'TR-DisclaimerEN' -Priority '0' -Enabled $false -ADComparisonAttribute " Country:United States" -ADComparisonOperator 'Equal' -ApplyHtmlDisclaimerLocation ... here the other parts, but it is not accepting " Country:United States"

Any idea how to do that ... I know that I can create a distribution list and it will be easy, but I would like Attribute Country
 
G

Gavin-Zhang

Hi EASF-BF,
You could use the parapeter " SenderADAttributeContainsWords" , but not the ADComaparisonAttribute, the parapeter is used to compare the sender and the recipient's ADAttribute.
Regards!
Gavin
 
Status
Not open for further replies.
Top