Skip to content

Commit 6901e3c

Browse files
committed
ZAP for Teams updates
1 parent 9af5bc4 commit 6901e3c

File tree

4 files changed

+102
-21
lines changed

4 files changed

+102
-21
lines changed

exchange/exchange-ps/exchange/New-TeamsProtectionPolicy.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Accept wildcard characters: False
8484
```
8585

8686
### -HighConfidencePhishQuarantineTag
87-
The HighConfidencePhishQuarantineTag parameter specifies the quarantine policy that's used on Teams messages that are quarantined as high confidence phishing. You can use any value that uniquely identifies the quarantine policy. For example:
87+
The HighConfidencePhishQuarantineTag parameter specifies the quarantine policy that's used for messages that are quarantined as high confidence phishing by ZAP for Teams. You can use any value that uniquely identifies the quarantine policy. For example:
8888

8989
- Name
9090
- Distinguished name (DN)
@@ -108,7 +108,7 @@ Accept wildcard characters: False
108108
```
109109

110110
### -MalwareQuarantineTag
111-
The MalwareQuarantineTag parameter specifies the quarantine policy that's used on Teams messages that are quarantined as malware. You can use any value that uniquely identifies the quarantine policy. For example:
111+
The MalwareQuarantineTag parameter specifies the quarantine policy that's used for messages that are quarantined as malware by ZAP for Teams. You can use any value that uniquely identifies the quarantine policy. For example:
112112

113113
- Name
114114
- Distinguished name (DN)

exchange/exchange-ps/exchange/New-TeamsProtectionPolicyRule.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
5050
New-TeamsProtectionPolicyRule -Name "Teams Protection Policy Rule" -TeamsProtectionPolicy "Teams Protection Policy" -ExceptIfSentToMemberOf [email protected]
5151
```
5252

53-
This example creates the Teams protection policy rule with protection in Teams turned off for members of the group named Research.
53+
This example creates the Teams protection policy rule with members of the group named Research excluded from ZAP for Teams protection.
5454

5555
## PARAMETERS
5656

@@ -122,10 +122,7 @@ Accept wildcard characters: False
122122
```
123123

124124
### -Enabled
125-
The Enabled parameter specifies whether the rule is enabled or disabled. Valid values are:
126-
127-
- $true: The rule is enabled. This is the default value.
128-
- $false: The rule is disabled.
125+
This parameter is reserved for internal Microsoft use.
129126

130127
```yaml
131128
Type: Boolean
@@ -141,7 +138,7 @@ Accept wildcard characters: False
141138
```
142139

143140
### -ExceptIfRecipientDomainIs
144-
The ExceptIfRecipientDomainIs parameter specifies an exception to Teams protection that looks for recipients of Teams messages with email addresses in the specified domains. You can specify multiple domains separated by commas.
141+
The ExceptIfRecipientDomainIs parameter specifies an exception to ZAP for Teams protection that looks for recipients of Teams messages with email addresses in the specified domains. You can specify multiple domains separated by commas.
145142

146143
```yaml
147144
Type: Word[]
@@ -157,7 +154,7 @@ Accept wildcard characters: False
157154
```
158155

159156
### -ExceptIfSentTo
160-
The ExceptIfSentTo parameter specifies an exception to Teams protection that looks for recipients of Teams messages. You can use any value that uniquely identifies the recipient. For example:
157+
The ExceptIfSentTo parameter specifies an exception to ZAP for Teams protection that looks for recipients of Teams messages. You can use any value that uniquely identifies the recipient. For example:
161158

162159
- Name
163160
- Alias
@@ -182,7 +179,7 @@ Accept wildcard characters: False
182179
```
183180

184181
### -ExceptIfSentToMemberOf
185-
The ExceptIfSentToMemberOf parameter specifies an exception to Teams protection that looks for Teams messages sent to members of distribution groups or mail-enabled security groups. You can use any value that uniquely identifies the group. For example:
182+
The ExceptIfSentToMemberOf parameter specifies an exception to ZAP for Teams protection that looks for Teams messages sent to members of distribution groups or mail-enabled security groups. You can use any value that uniquely identifies the group. For example:
186183

187184
- Name
188185
- Alias

exchange/exchange-ps/exchange/Set-TeamsProtectionPolicy.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
4141
Set-TeamsProtectionPolicy -Identity "Teams Protection Policy" -HighConfidencePhishQuarantineTag AdminOnlyWithNotifications
4242
```
4343

44-
This example changes the quarantine policy that's used for high confidence phishing detections in Teams messages.
44+
This example changes the quarantine policy that's used for high confidence phishing detections.
4545

4646
## PARAMETERS
4747

@@ -97,7 +97,7 @@ Accept wildcard characters: False
9797
```
9898

9999
### -HighConfidencePhishQuarantineTag
100-
The HighConfidencePhishQuarantineTag parameter specifies the quarantine policy that's used on Teams messages that are quarantined as high confidence phishing. You can use any value that uniquely identifies the quarantine policy. For example:
100+
The HighConfidencePhishQuarantineTag parameter specifies the quarantine policy that's used for messages that are quarantined as high confidence phishing by ZAP for Teams. You can use any value that uniquely identifies the quarantine policy. For example:
101101

102102
- Name
103103
- Distinguished name (DN)
@@ -121,7 +121,7 @@ Accept wildcard characters: False
121121
```
122122

123123
### -MalwareQuarantineTag
124-
The MalwareQuarantineTag parameter specifies the quarantine policy that's used on Teams messages that are quarantined as malware. You can use any value that uniquely identifies the quarantine policy. For example:
124+
The MalwareQuarantineTag parameter specifies the quarantine policy that's used for messages that are quarantined as malware by ZAP for Teams. You can use any value that uniquely identifies the quarantine policy. For example:
125125

126126
- Name
127127
- Distinguished name (DN)

exchange/exchange-ps/exchange/Set-TeamsProtectionPolicyRule.md

Lines changed: 92 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
3838

3939
### Example 1
4040
```powershell
41-
Set-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule"-ExceptIfRecipientDomainIs research.contoso.com
41+
Set-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule" -ExceptIfRecipientDomainIs research.contoso.com
4242
```
4343

44-
This example modifies the existing Teams protection policy rule by excluding recipients in the domain research.contoso.com from Teams protection.
44+
This example modifies the existing Teams protection policy rule by excluding recipients in the domain research.contoso.com from ZAP for Teams protection.
4545

4646
## PARAMETERS
4747

@@ -97,7 +97,37 @@ Accept wildcard characters: False
9797
```
9898

9999
### -ExceptIfRecipientDomainIs
100-
The ExceptIfRecipientDomainIs parameter specifies an exception to Teams protection that looks for recipients of Teams messages with email addresses in the specified domains. You can specify multiple domains separated by commas.
100+
The ExceptIfRecipientDomainIs parameter specifies an exception to ZAP for Teams protection that looks for recipients of Teams messages with email addresses in the specified domains.
101+
102+
To replace all existing domains with the values you specify, use the following syntax: `Domain1,Domain2,...DomainN`.
103+
104+
To add domains without affecting other existing values, use the following syntax:
105+
106+
`$DomainsAdd = Get-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule" | select -Expand ExceptIfRecipientDomainIs`
107+
108+
`$DomainsAdd += "Domain1","Domain2",..."DomainN"`
109+
110+
`Set-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule" -ExceptIfRecipientDomainIs $DomainsAdd`
111+
112+
To remove domains without affecting other existing values, use the following syntax:
113+
114+
- Run the following commands to see the existing list of values in order:
115+
116+
`$x = Get-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule"`
117+
118+
`$d = [System.Collections.ArrayList]($x.ExceptIfRecipientDomainIs)`
119+
120+
`$d`
121+
122+
The first value in the list has the index number 0, the second has the index number 1, and so on.
123+
124+
- Use the index number to specify the value to remove. For example, to remove the seventh value in the list, run the following commands:
125+
126+
`$d.RemoveAt(6)`
127+
128+
`Set-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule" -ExceptIfRecipientDomainIs $d`
129+
130+
To empty the list, use the value $null for this parameter.
101131

102132
```yaml
103133
Type: Word[]
@@ -113,7 +143,7 @@ Accept wildcard characters: False
113143
```
114144

115145
### -ExceptIfSentTo
116-
The ExceptIfSentTo parameter specifies an exception to Teams protection that looks for recipients of Teams messages. You can use any value that uniquely identifies the recipient. For example:
146+
The ExceptIfSentTo parameter specifies an exception to ZAP for Teams protection that looks for recipients of Teams messages. You can use any value that uniquely identifies the recipient. For example:
117147

118148
- Name
119149
- Alias
@@ -122,7 +152,35 @@ The ExceptIfSentTo parameter specifies an exception to Teams protection that loo
122152
- Email address
123153
- GUID
124154

125-
You can enter multiple values separated by commas. If the values contain spaces or otherwise require quotation marks, use the following syntax: `"Value1","Value2",..."ValueN"`.
155+
To replace all existing recipients with the values you specify, use the following syntax: `"User1","User2",..."UserN"`.
156+
157+
To add recipients without affecting other existing values, use the following syntax:
158+
159+
`$UsersAdd = Get-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule" | select -Expand ExceptIfSentTo`
160+
161+
`$UsersAdd += "User1","User2",..."UserN"`
162+
163+
`Set-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule" -ExceptIfSentTo $UsersAdd`
164+
165+
To remove recipients without affecting other existing values, use the following syntax:
166+
167+
- Run the following commands to see the existing list of values in order:
168+
169+
`$x = Get-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule"`
170+
171+
`$u = [System.Collections.ArrayList]($x.ExceptIfSentTo)`
172+
173+
`$u`
174+
175+
The first value in the list has the index number 0, the second has the index number 1, and so on.
176+
177+
- Use the index number to specify the value to remove. For example, to remove the seventh value in the list, run the following commands:
178+
179+
`$u.RemoveAt(6)`
180+
181+
`Set-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule" -ExceptIfSentTo $u`
182+
183+
To empty the list, use the value $null for this parameter.
126184

127185
```yaml
128186
Type: RecipientIdParameter[]
@@ -138,7 +196,7 @@ Accept wildcard characters: False
138196
```
139197

140198
### -ExceptIfSentToMemberOf
141-
The ExceptIfSentToMemberOf parameter specifies an exception to Teams protection that looks for Teams messages sent to members of distribution groups or mail-enabled security groups. You can use any value that uniquely identifies the group. For example:
199+
The ExceptIfSentToMemberOf parameter specifies an exception to ZAP for Teams protection that looks for Teams messages sent to members of distribution groups or mail-enabled security groups. You can use any value that uniquely identifies the group. For example:
142200

143201
- Name
144202
- Alias
@@ -147,9 +205,35 @@ The ExceptIfSentToMemberOf parameter specifies an exception to Teams protection
147205
- Email address
148206
- GUID
149207

150-
You can enter multiple values separated by commas. If the values contain spaces or otherwise require quotation marks, use the following syntax: `"Value1","Value2",..."ValueN"`.
208+
To add groups without affecting other existing values, use the following syntax:
209+
210+
`$GroupsAdd = Get-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule" | select -Expand ExceptIfSentToMemberOf`
211+
212+
`$GroupsAdd += "Group1","Group2",..."GroupN"`
213+
214+
`Set-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule" -ExceptIfSentToMemberOf $GroupsAdd`
215+
216+
To remove groups without affecting other existing values, use the following syntax:
217+
218+
- Run the following commands to see the existing list of values in order:
219+
220+
`$x = Get-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule"`
221+
222+
`$g = [System.Collections.ArrayList]($x.ExceptIfSentToMemberOf)`
223+
224+
`$g`
225+
226+
The first value in the list has the index number 0, the second has the index number 1, and so on.
227+
228+
- Use the index number to specify the value to remove. For example, to remove the seventh value in the list, run the following commands:
229+
230+
`$g.RemoveAt(6)`
231+
232+
`Set-TeamsProtectionPolicyRule -Identity "Teams Protection Policy Rule" -ExceptIfSentTo $g`
233+
234+
If you remove the group after you create the rule, no exception is made for ZAP for Teams for messages that are sent to members of the group.
151235

152-
If you remove the group after you create the rule, no exception is made for Teams messages that are sent to members of the group.
236+
To empty the list, use the value $null for this parameter.
153237

154238
```yaml
155239
Type: RecipientIdParameter[]

0 commit comments

Comments
 (0)