Skip to content

Commit 09af3e3

Browse files
authored
Merge pull request #13155 from joagarwal/docs-editor/New-RetentionComplianceRule-1759741368
Make RetentionComplianceAction mandatory
2 parents 3ec8f04 + 57a77a2 commit 09af3e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ To use this cmdlet in Security & Compliance PowerShell, you need to be assigned
7272

7373
### Example 1
7474
```powershell
75-
New-RetentionComplianceRule -Name InternalCompanyRule -Policy "Internal Company Policy" -RetentionDuration Unlimited
75+
New-RetentionComplianceRule -Name InternalCompanyRule -Policy "Internal Company Policy" -RetentionDuration Unlimited -RetentionComplianceAction Keep
7676
```
7777

78-
This example creates a new case hold rule named InternalCompanyRule and adds it to the existing case hold policy named "Internal Company Policy". Content is held indefinitely.
78+
This example creates a new retention hold rule named InternalCompanyRule and adds it to the existing retention hold policy named "Internal Company Policy". Content is held indefinitely.
7979

8080
### Example 2
8181
```powershell
@@ -383,7 +383,7 @@ The RetentionComplianceAction parameter specifies the retention action for the r
383383
- Keep
384384
- KeepAndDelete
385385

386-
If you don't use this parameter, the retention policy is created as an "UniH" policy instead of a "mbx" policy.
386+
If you don't use this parameter, the retention policy is created as an "UniH" policy instead of a "mbx" policy. This parameter is mandatory to prevent non-compliant deletion.
387387

388388
```yaml
389389
Type: String

0 commit comments

Comments
 (0)