Skip to content

Commit e70a5cf

Browse files
authored
Merge pull request MicrosoftDocs#4269 from MicrosoftDocs/master
Master to Live
2 parents d85dc67 + 7fc1c44 commit e70a5cf

File tree

83 files changed

+863
-703
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+863
-703
lines changed

exchange/docs-conceptual/exchange-online/disable-access-to-exchange-online-powershell.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $<VariableName> | foreach {Set-User -Identity $_ -RemotePowerShellEnabled $false
6565
This example removes access to Exchange Online PowerShell for all users whose **Title** attribute contains the value "Sales Associate".
6666

6767
```PowerShell
68-
$DSA = Get-User -ResultSize unlimited -Filter {(RecipientType -eq 'UserMailbox') -and (Title -like '*Sales Associate*')}
68+
$DSA = Get-User -ResultSize unlimited -Filter "(RecipientType -eq 'UserMailbox') -and (Title -like '*Sales Associate*')"
6969
```
7070

7171
```PowerShell
@@ -121,11 +121,11 @@ Get-User -ResultSize unlimited | Format-Table -Auto Name,DisplayName,RemotePower
121121
To display only those users who don't have access to Exchange Online PowerShell, run the following command:
122122

123123
```PowerShell
124-
Get-User -ResultSize unlimited -Filter {RemotePowerShellEnabled -eq $false}
124+
Get-User -ResultSize unlimited -Filter "RemotePowerShellEnabled -eq $false"
125125
```
126126

127127
To display only those users who have access to Exchange Online PowerShell, run the following command:
128128

129129
```PowerShell
130-
Get-User -ResultSize unlimited -Filter {RemotePowerShellEnabled -eq $true}
130+
Get-User -ResultSize unlimited -Filter "RemotePowerShellEnabled -eq $true"
131131
```

exchange/docs-conceptual/exchange-server/control-remote-powershell-access-to-exchange-servers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ $<VariableName> | foreach {Set-User -RemotePowerShellEnabled $false}
6868
This example removes access to remote PowerShell for all users whose **Title** attribute contains the value "Sales Associate".
6969

7070
```PowerShell
71-
$DSA = Get-User -ResultSize unlimited -Filter {(RecipientType -eq 'UserMailbox') -and (Title -like '*Sales Associate*')}
71+
$DSA = Get-User -ResultSize unlimited -Filter "(RecipientType -eq 'UserMailbox') -and (Title -like '*Sales Associate*')"
7272
```
7373

7474
```PowerShell
@@ -124,11 +124,11 @@ Get-User -ResultSize unlimited | Format-Table -Auto Name,DisplayName,RemotePower
124124
To display only those users who don't have access to remote PowerShell, run the following command:
125125

126126
```PowerShell
127-
Get-User -ResultSize unlimited -Filter {RemotePowerShellEnabled -eq $false}
127+
Get-User -ResultSize unlimited -Filter "RemotePowerShellEnabled -eq $false"
128128
```
129129

130130
To display only those users who have access to remote PowerShell, run the following command:
131131

132132
```PowerShell
133-
Get-User -ResultSize unlimited -Filter {RemotePowerShellEnabled -eq $true}
133+
Get-User -ResultSize unlimited -Filter "RemotePowerShellEnabled -eq $true"
134134
```

exchange/docs-conceptual/exchange-server/recipient-filters/filter-properties.md

Lines changed: 236 additions & 236 deletions
Large diffs are not rendered by default.

exchange/docs-conceptual/exchange-server/recipient-filters/recipient-filters.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ The following example uses the _RecipientFilter_ parameter to create a dynamic d
122122
This example uses custom filters to create a dynamic distribution group for user mailboxes that have the **Company** attribute defined as Contoso and the **Office** attribute defined as North Building.
123123

124124
```PowerShell
125-
New-DynamicDistributionGroup -Name AllContosoNorth -OrganizationalUnit contoso.com/Users -RecipientFilter { ((RecipientType -eq 'UserMailbox') -and (Company -eq 'Contoso') -and (Office -eq 'North Building')) }
125+
New-DynamicDistributionGroup -Name AllContosoNorth -OrganizationalUnit contoso.com/Users -RecipientFilter "((RecipientType -eq 'UserMailbox') -and (Company -eq 'Contoso') -and (Office -eq 'North Building'))"
126126
```
127127

128128
## Custom filters using the Filter parameter
@@ -176,19 +176,19 @@ For more information about the filterable properties you can use with the _Filte
176176
This example uses the _Filter_ parameter to return information about users whose title contains the word "manager".
177177

178178
```PowerShell
179-
Get-User -Filter {Title -like 'Manager*'}
179+
Get-User -Filter "Title -like 'Manager*'"
180180
```
181181

182182
## Custom filters using the ContentFilter parameter
183183

184184
You can use the _ContentFilter_ parameter to select specific message content to export when using the [New-MailboxExportRequest](../../../exchange-ps/exchange/mailboxes/new-mailboxexportrequest.md) cmdlet. If the command finds a message that contains the match to the content filter, it exports the message to a .pst file.
185185

186-
### ContentFilter paramter example
186+
### ContentFilter parameter example
187187

188188
This example creates an export request that searches Ayla's mailbox for messages where the body contains the phrase "company prospectus". If that phrase is found, the command exports all messages with that phrase to a .pst file.
189189

190190
```PowerShell
191-
New-MailboxExportRequest -Mailbox Ayla -ContentFilter {Body -like "company prospectus*"}
191+
New-MailboxExportRequest -Mailbox Ayla -ContentFilter "Body -like "company prospectus*""
192192
```
193193

194194
For more information about the filterable properties you can use with the _ContentFilter_ parameter, see [Filterable Properties for the ContentFilter Parameter](https://technet.microsoft.com/library/cf504a59-1938-489c-bb48-b27b2ac3234e.aspx).
@@ -197,7 +197,9 @@ For more information about the filterable properties you can use with the _Conte
197197

198198
When creating your own custom filters, be aware of the following:
199199

200-
- Use braces { } around the entire OPATH filter string with the _Filter_ or _RecipientFilter_ parameters.
200+
- With the _Filter_ or _RecipientFilter_ parameters, enclose the whole OPath filter in double quotation marks " ". Braces { } will also work, but only if the filter doesn't contain variables.
201+
202+
- Enclose text values and variables in single quotation marks (`'Value'` or `'$Variable'`). Don't use quotation marks with integers or the system values `$true`, `$false`, or `$null`. You need to escape any variables with values that contain single quotation marks. For example, instead of `"Property -eq '$x'"`, use `"Property -eq '$($x -Replace "'","''")'"`.
201203

202204
- Include the hyphen before all operators. The most common operators include:
203205

@@ -223,9 +225,9 @@ When creating your own custom filters, be aware of the following:
223225

224226
- For more information about operators you can use, see:
225227

226-
- [About Logical Operators](https://technet.microsoft.com/library/hh847789.aspx)
228+
- [about_Logical_Operators](https://technet.microsoft.com/library/hh847789.aspx)
227229

228-
- [About Comparison Operators](https://technet.microsoft.com/library/hh847759.aspx)
230+
- [about_Comparison_Operators](https://technet.microsoft.com/library/hh847759.aspx)
229231

230232
## Recipient filter documentation
231233

exchange/exchange-ps/exchange/active-directory/Get-UserPrincipalNamesSuffix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This example returns all UPN suffixes for the Active Directory forest.
4545
## PARAMETERS
4646

4747
### -OrganizationalUnit
48-
The OrganizationalUnit parameter filters the results based on the object's location in Active Directory. Only objects that exist in the specified location are returned. Valid input for this parameter is an organizational unit (OU) or domain that's visible using the Get-OrganizationalUnit cmdlet. You can use any value that uniquely identifies the OU or domain. For example:
48+
The OrganizationalUnit parameter filters the results based on the object's location in Active Directory. Only objects that exist in the specified location are returned. Valid input for this parameter is an organizational unit (OU) or domain that's returned by the Get-OrganizationalUnit cmdlet. You can use any value that uniquely identifies the OU or domain. For example:
4949

5050
- Name
5151

exchange/exchange-ps/exchange/advanced-threat-protection/Set-AtpPolicyForO365.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,12 @@ Accept pipeline input: False
140140
Accept wildcard characters: False
141141
```
142142
143-
### -EnableSafeLinksForClients
144-
The EnableSafeLinksForClients parameter specifies whether Safe Links is enabled for Office 365 ProPlus clients. Valid values are:
143+
### -EnableSafeLinksForO365Clients
144+
The EnableSafeLinksForO365Clients parameter specifies whether Safe Links is enabled for Office 365 apps on desktop clients and on the web. Valid values are:
145145
146-
- $true: Safe Links are enabled for Office clients.
146+
- $true: Safe Links are enabled for Office 365 apps. This is the default value.
147147
148-
- $false: Safe Links are disabled for Office clients. This is the default value.
148+
- $false: Safe Links are disabled for Office 365 apps.
149149
150150
```yaml
151151
Type: $true | $false

exchange/exchange-ps/exchange/antispam-antimalware/New-HostedContentFilterPolicy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ This example creates a content filter policy named Contoso Content Filter Policy
9898
### -Name
9999
The Name parameter specifies a unique name for the content filter policy. If the value contains spaces, enclose the value in quotation marks (").
100100

101-
The value itself can't contain the following characters: \\, %, &, \*, +, /, =, ?, {, }, \|, \<, \>, (, ), ;, :, [, ], comma (,), or double-quotation mark (").
101+
The value itself can't contain the following characters: \\, %, &, \*, +, /, =, ?, {, }, \|, \<, \>, (, ), ;, :, [, ], comma (,), or double quotation mark (").
102102

103103
```yaml
104104
Type: String

exchange/exchange-ps/exchange/antispam-antimalware/New-HostedContentFilterRule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Accept wildcard characters: False
7171
### -Name
7272
The Name parameter specifies a unique name for the content filter rule. If the value contains spaces, enclose the value in quotation marks (").
7373
74-
The value itself can't contain the following characters: \\, %, &, \*, +, /, =, ?, {, }, \|, \<, \>, (, ), ;, :, [, ], comma (,), or double-quotation mark (").
74+
The value itself can't contain the following characters: \\, %, &, \*, +, /, =, ?, {, }, \|, \<, \>, (, ), ;, :, [, ], comma (,), or double quotation mark (").
7575
7676
```yaml
7777
Type: String

exchange/exchange-ps/exchange/antispam-antimalware/Set-HostedContentFilterRule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Accept wildcard characters: False
196196
### -Name
197197
The Name parameter specifies a unique name for the content filter rule. If the value contains spaces, enclose the value in quotation marks (").
198198
199-
The value itself can't contain the following characters: \\, %, &, \*, +, /, =, ?, {, }, \|, \<, \>, (, ), ;, :, [, ], comma (,), or double-quotation mark (").
199+
The value itself can't contain the following characters: \\, %, &, \*, +, /, =, ?, {, }, \|, \<, \>, (, ), ;, :, [, ], comma (,), or double quotation mark (").
200200
201201
```yaml
202202
Type: String

exchange/exchange-ps/exchange/client-access/Get-CASMailbox.md

Lines changed: 8 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -190,87 +190,19 @@ Accept wildcard characters: False
190190
```
191191
192192
### -Filter
193-
The Filter parameter uses OPATH filter syntax to filter the results by the specified properties and values. The search criteria uses the syntax {\<Property\> -\<Comparison operator\> '\<Value\>'}.
193+
The Filter parameter uses OPath syntax to filter the results by the specified properties and values. The search criteria uses the syntax `"Property -ComparisonOperator 'Value'"`.
194194
195-
- \<Property\> is a filterable property.
195+
- Enclose the whole OPath filter in double quotation marks " ". Braces { } will also work, but only if the filter doesn't contain variables.
196196
197-
- -\<Comparison Operator\> is an OPATH comparison operator. For example -eq for equals and -like for string comparison. For more information about comparison operators, see [About Comparison Operators](https://go.microsoft.com/fwlink/p/?LinkId=620712).
197+
- Property is a filterable property.
198198
199-
- \<Value\> is the property value. Text values with or without spaces need to be enclosed in quotation marks ('\<Value\>'). Don't use quotation marks with integers or the system values $true, $false, or $null.
199+
- ComparisonOperator is an OPath comparison operator. For example `-eq` for equals and `-like` for string comparison. For more information about comparison operators, see [about_Comparison_Operators](https://go.microsoft.com/fwlink/p/?LinkId=620712).
200200

201-
You can chain multiple search criteria together using the logical operators -and and -or. For example, {\<Criteria1\>) -and \<Criteria2\>} or {(\<Criteria1\> -and \<Criteria2\>) -or \<Criteria3\>}.
201+
- Value is the property value. Enclose text values and variables in single quotation marks (`'Value'` or `'$Variable'`). Don't use quotation marks with integers or the system values $true, $false, or $null. You need to escape any variables with values that contain single quotation marks. For example, instead of `"Property -eq '$x'"`, use `"Property -eq '$($x -Replace "'","''")'"`.
202202

203-
You can filter by the following properties:
203+
You can chain multiple search criteria together using the logical operators `-and` and `-or`. For example, `"Criteria1 -and Criteria2"` or `"(Criteria1 -and Criteria2) -or Criteria3"`.
204204

205-
- ActiveSyncAllowedDeviceIDs
206-
207-
- ActiveSyncBlockedDeviceIDs
208-
209-
- ActiveSyncDebugLogging
210-
211-
- ActiveSyncEnabled
212-
213-
- ActiveSyncMailboxPolicy
214-
215-
- ActiveSyncSuppressReadReceipt
216-
217-
- DisplayName
218-
219-
- DistinguishedName
220-
221-
- ECPEnabled
222-
223-
- EmailAddresses
224-
225-
- EwsApplicationAccessPolicy
226-
227-
- EwsEnabled
228-
229-
- ExchangeVersion
230-
231-
- Guid
232-
233-
- HasActiveSyncDevicePartnership
234-
235-
- Id
236-
237-
- ImapEnabled
238-
239-
- LegacyExchangeDN
240-
241-
- MAPIEnabled
242-
243-
- Name
244-
245-
- ObjectCategory
246-
247-
- ObjectClass
248-
249-
- OWAEnabled
250-
251-
- OWAforDevicesEnabled
252-
253-
- OwaMailboxPolicy
254-
255-
- PopEnabled
256-
257-
- PrimarySmtpAddress
258-
259-
- SamAccountName
260-
261-
- ServerLegacyDN
262-
263-
- ServerName
264-
265-
- WhenChanged
266-
267-
- WhenChangedUTC
268-
269-
- WhenCreated
270-
271-
- WhenCreatedUTC
272-
273-
For more information, see [Filterable properties for the Filter parameter](https://docs.microsoft.com/powershell/exchange/exchange-server/recipient-filters/filter-properties).
205+
For more information about the filterable properties, see [Filterable properties for the Filter parameter](https://docs.microsoft.com/powershell/exchange/exchange-server/recipient-filters/filter-properties).
274206

275207
```yaml
276208
Type: String
@@ -360,7 +292,7 @@ Accept wildcard characters: False
360292
```
361293

362294
### -OrganizationalUnit
363-
The OrganizationalUnit parameter filters the results based on the object's location in Active Directory. Only objects that exist in the specified location are returned. Valid input for this parameter is an organizational unit (OU) or domain that's visible using the Get-OrganizationalUnit cmdlet. You can use any value that uniquely identifies the OU or domain. For example:
295+
The OrganizationalUnit parameter filters the results based on the object's location in Active Directory. Only objects that exist in the specified location are returned. Valid input for this parameter is an organizational unit (OU) or domain that's returned by the Get-OrganizationalUnit cmdlet. You can use any value that uniquely identifies the OU or domain. For example:
364296

365297
- Name
366298

exchange/exchange-ps/exchange/client-access/Get-CASMailboxPlan.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,17 @@ Accept wildcard characters: False
9393
```
9494

9595
### -Filter
96-
The Filter parameter indicates the OPath filter used to filter recipients.
96+
The Filter parameter uses OPath syntax to filter the results by the specified properties and values. The search criteria uses the syntax `"Property -ComparisonOperator 'Value'"`.
9797

98-
For more information about the filterable properties, see [Filterable properties for the Filter parameter](https://docs.microsoft.com/powershell/exchange/exchange-server/recipient-filters/filter-properties).
98+
- Enclose the whole OPath filter in double quotation marks " ". Braces { } will also work, but only if the filter doesn't contain variables.
99+
100+
- Property is a filterable property.
101+
102+
- ComparisonOperator is an OPath comparison operator. For example `-eq` for equals and `-like` for string comparison. For more information about comparison operators, see [about_Comparison_Operators](https://go.microsoft.com/fwlink/p/?LinkId=620712).
103+
104+
- Value is the property value. Enclose text values and variables in single quotation marks (`'Value'` or `'$Variable'`). Don't use quotation marks with integers or the system values $true, $false, or $null. You need to escape any variables with values that contain single quotation marks. For example, instead of `"Property -eq '$x'"`, use `"Property -eq '$($x -Replace "'","''")'"`.
105+
106+
You can chain multiple search criteria together using the logical operators `-and` and `-or`. For example, `"Criteria1 -and Criteria2"` or `"(Criteria1 -and Criteria2) -or Criteria3"`.
99107

100108
```yaml
101109
Type: String

exchange/exchange-ps/exchange/client-access/New-ClientAccessRule.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,19 @@ Accept wildcard characters: True
435435
### -UserRecipientFilter
436436
This parameter is available only in the cloud-based service.
437437
438-
The UserRecipientFilter parameter specifies a condition for the client access rule that uses OPath filter syntax to identify the user. For example, {City -eq "Redmond"}. The filterable attributes that you can use with this parameter are:
438+
The UserRecipientFilter parameter specifies a condition for the client access rule that uses OPath filter syntax to identify the user. The syntax is `"Property -ComparisonOperator 'Value'"` (for example, `"City -eq 'Redmond'"`).
439+
440+
- Enclose the whole OPath filter in double quotation marks " ". Braces { } will also work, but only if the filter doesn't contain variables.
441+
442+
- Property is a filterable property.
443+
444+
- ComparisonOperator is an OPath comparison operator. For example `-eq` for equals and `-like` for string comparison. For more information about comparison operators, see [about_Comparison_Operators](https://go.microsoft.com/fwlink/p/?LinkId=620712).
445+
446+
- Value is the property value. Enclose text values and variables in single quotation marks (`'Value'` or `'$Variable'`). Don't use quotation marks with integers or the system values $true, $false, or $null. You need to escape any variables with values that contain single quotation marks. For example, instead of `"Property -eq '$x'"`, use `"Property -eq '$($x -Replace "'","''")'"`.
447+
448+
You can chain multiple search criteria together using the logical operators `-and` and `-or`. For example, `"Criteria1 -and Criteria2"` or `"(Criteria1 -and Criteria2) -or Criteria3"`.
449+
450+
The filterable attributes that you can use with this parameter are:
439451

440452
- City
441453

exchange/exchange-ps/exchange/client-access/Set-ClientAccessRule.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,17 @@ Accept wildcard characters: False
458458
### -UserRecipientFilter
459459
This parameter is available only in the cloud-based service.
460460
461-
The UserRecipientFilter parameter specifies a condition for the client access rule that uses OPath filter syntax to identify the user. For example, {City -eq "Redmond"}. The filterable attributes that you can use with this parameter are:
461+
The UserRecipientFilter parameter specifies a condition for the client access rule that uses OPath filter syntax to identify the user. The syntax is `"Property -ComparisonOperator 'Value'"` (for example, `"City -eq 'Redmond'"`).
462+
463+
- Enclose the whole OPath filter in double quotation marks " ". Braces { } will also work, but only if the filter doesn't contain variables.
464+
465+
- Property is a filterable property.
466+
467+
- ComparisonOperator is an OPath comparison operator. For example `-eq` for equals and `-like` for string comparison. For more information about comparison operators, see [about_Comparison_Operators](https://go.microsoft.com/fwlink/p/?LinkId=620712).
468+
469+
- Value is the property value. Enclose text values and variables in single quotation marks (`'Value'` or `'$Variable'`). Don't use quotation marks with integers or the system values $true, $false, or $null. You need to escape any variables with values that contain single quotation marks. For example, instead of `"Property -eq '$x'"`, use `"Property -eq '$($x -Replace "'","''")'"`.
470+
471+
You can chain multiple search criteria together using the logical operators `-and` and `-or`. For example, `"Criteria1 -and Criteria2"` or `"(Criteria1 -and Criteria2) -or Criteria3"`.
462472

463473
- City
464474

0 commit comments

Comments
 (0)