AddExchangeLocation
Parameter of AutoSensitivityLabelPolicy
Applies to : Security & Compliance
Description
The AddExchangeLocation parameter adds email messages to the policy if they aren't already included. The valid value for this parameter is All.
If the policy doesn't already include email messages (in the output of the Get-AutoSensitivityLabelPolicy cmdlet, the ExchangeLocation property value is blank), you can use this parameter in the following procedures:
- If you use
-AddExchangeLocation Allby itself, the policy applies to email for all internal users.
- To include email of specific internal or external users in the policy, use
-AddExchangeLocation Allwith the ExchangeSender parameter in the same command. Only email of the specified users is included in the policy.
- To include email of specific group members in the policy, use
-AddExchangeLocation Allwith the ExchangeSenderMemberOf parameter in the same command. Only email of members of the specified groups is included in the policy.
- To exclude email of specific internal users from the policy, use
-AddExchangeLocation Allwith the ExchangeSenderException parameter in the same command. Only email of the specified users is excluded from the policy.
- To exclude email of specific group members from the policy, use
-AddExchangeLocation Allwith the ExchangeSenderMemberOfException parameter in the same command. Only email of members of the specified groups is excluded from the policy.
You can't specify inclusions and exclusions in the same policy.
Characteristics
- Type
MultiValuedProperty- Parameter sets
- Identity
Apply
This value type (MultiValuedProperty) must be built by hand: see the examples on the policy page and the Microsoft documentation.