Skip to content

Commit 72a7644

Browse files
authored
Merge pull request MicrosoftDocs#9142 from chr-github/patch-1
Update New-RetentionComplianceRule.md
2 parents d9e80d9 + 0644896 commit 72a7644

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

exchange/exchange-ps/exchange/New-RetentionComplianceRule.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,17 @@ To use this cmdlet in Security & Compliance Center PowerShell, you need to be as
6767

6868
### Example 1
6969
```powershell
70-
New-RetentionComplianceRule -Name SeptOneYear -Policy "Internal Company Policy" -RetentionDuration Unlimited
70+
New-RetentionComplianceRule -Name InternalCompanyRule -Policy "Internal Company Policy" -RetentionDuration Unlimited
7171
```
7272

73-
This example creates a new retention rule named SeptOneYear and adds it to the existing retention policy named "Internal Company Policy". Content will be held indefinitely.
73+
This example creates a new case hold rule named InternalCompanyRule and adds it to the existing case hold policy named "Internal Company Policy". Content will be held indefinitely.
74+
75+
### Example 2
76+
```powershell
77+
New-RetentionComplianceRule -Name SeptOneYear -Policy "Internal Company Policy" -RetentionDuration 365 -RetentionComplianceAction KeepAndDelete -ExpirationDateOption ModificationAgeInDays
78+
```
79+
80+
This example creates a new retention rule named SeptOneYear and adds it to the existing retention policy named "Internal Company Policy". Content will be held for one year from the day content was last modified before it is deleted.
7481

7582
## PARAMETERS
7683

0 commit comments

Comments
 (0)