You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -37,6 +35,13 @@ New-CaseHoldRule -Name "2016 Budget Spreadsheets" -Policy "Internal Company Poli
37
35
38
36
This example creates a new case hold rule named 2016 Budget Spreadsheets and adds it to the existing case hold policy named "Internal Company Policy". The rule applies to Excel worksheets that contain the phrase 2016 budget, such as "2016 budget planning.xlsx" and "2016 budget review.xlsx"
39
37
38
+
### -------------------------- Example 2 --------------------------
39
+
```
40
+
New-CaseHoldRule -Name "Contoso Case 07172018 Hold 1" -Policy "Contoso Case 07172018" -ContentMatchQuery "received:12/01/2016..12/31/2017"
41
+
```
42
+
43
+
This example places email messages received by the recipients between December 1, 2016 and December 31, 2017 on hold.
44
+
40
45
## PARAMETERS
41
46
42
47
### -Name
@@ -109,42 +114,8 @@ Accept pipeline input: False
109
114
Accept wildcard characters: False
110
115
```
111
116
112
-
### -ContentDateFrom
113
-
The ContentDateFrom parameter specifies the start date of the date range.
114
-
115
-
Use the short date format that's defined in the Regional Options settings on the computer where you're running the command. For example, if the computer is configured to use the short date format mm/dd/yyyy, enter 09/01/2015 to specify September 1, 2015. You can enter the date only, or you can enter the date and time of day. If you enter the date and time of day, enclose the value in quotation marks ("), for example, "09/01/2015 5:00 PM".
116
-
117
-
```yaml
118
-
Type: DateTime
119
-
Parameter Sets: (All)
120
-
Aliases:
121
-
Applicable: Office 365 Security & Compliance Center
122
-
Required: False
123
-
Position: Named
124
-
Default value: None
125
-
Accept pipeline input: False
126
-
Accept wildcard characters: False
127
-
```
128
-
129
-
### -ContentDateTo
130
-
The ContentDateTo parameter specifies the end date of the date range.
131
-
132
-
Use the short date format that's defined in the Regional Options settings on the computer where you're running the command. For example, if the computer is configured to use the short date format mm/dd/yyyy, enter 09/01/2015 to specify September 1, 2015. You can enter the date only, or you can enter the date and time of day. If you enter the date and time of day, enclose the value in quotation marks ("), for example, "09/01/2015 5:00 PM".
133
-
134
-
```yaml
135
-
Type: DateTime
136
-
Parameter Sets: (All)
137
-
Aliases:
138
-
Applicable: Office 365 Security & Compliance Center
139
-
Required: False
140
-
Position: Named
141
-
Default value: None
142
-
Accept pipeline input: False
143
-
Accept wildcard characters: False
144
-
```
145
-
146
117
### -ContentMatchQuery
147
-
The ContentMatchQuery parameter specifies a content search filter.
118
+
The ContentMatchQuery parameter specifies a content search filter. Use this parameter to create a query-based hold so only the content that matches the specified search query is placed on hold.
148
119
149
120
This parameter uses a text search string or a query that's formatted by using the Keyword Query Language (KQL). For more information about KQL, see Keyword Query Language syntax reference (https://go.microsoft.com/fwlink/p/?linkid=269603).
0 commit comments