Skip to content

Commit 3a9560f

Browse files
committed
removed deprecated parameters from New- and Set-CaseHoldRule
As per feedback from eDiscovery forum
1 parent 3ed9a8f commit 3a9560f

File tree

1 file changed

+9
-38
lines changed

1 file changed

+9
-38
lines changed

exchange/exchange-ps/exchange/policy-and-compliance-ediscovery/New-CaseHoldRule.md

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ For information about the parameter sets in the Syntax section below, see Exchan
1818
## SYNTAX
1919

2020
```
21-
New-CaseHoldRule [-Name] <String> -Policy <PolicyIdParameter> [-Comment <String>] [-Confirm]
22-
[-ContentDateFrom <DateTime>] [-ContentDateTo <DateTime>] [-ContentMatchQuery <String>]
23-
[-Disabled <$true | $false>] [-WhatIf] [<CommonParameters>]
21+
New-CaseHoldRule [-Name] <String> -Policy <PolicyIdParameter> [-Comment <String>] [-Confirm] [-ContentMatchQuery <String>] [-Disabled <$true | $false>] [-WhatIf] [<CommonParameters>]
2422
```
2523

2624
## DESCRIPTION
@@ -37,6 +35,13 @@ New-CaseHoldRule -Name "2016 Budget Spreadsheets" -Policy "Internal Company Poli
3735

3836
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"
3937

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+
4045
## PARAMETERS
4146

4247
### -Name
@@ -109,42 +114,8 @@ Accept pipeline input: False
109114
Accept wildcard characters: False
110115
```
111116
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-
146117
### -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.
148119
149120
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).
150121

0 commit comments

Comments
 (0)