Skip to content

Commit 2a2d758

Browse files
authored
Merge branch 'master' into patch-232
2 parents 6a30f37 + c0c3665 commit 2a2d758

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

exchange/exchange-ps/exchange/New-RetentionCompliancePolicy.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ New-RetentionCompliancePolicy [-Name] <String>
6161
```
6262

6363
## DESCRIPTION
64-
New policies are not valid and will not be applied until a retention rule is added to the policy. In addition, at least one location parameter must be defined to create a retention policy.
64+
New policies are not valid and will not be applied until a retention rule is added to the policy. For more information, see [New-RetentionComplianceRule](New-RetentionComplianceRule.md). In addition, at least one location parameter must be defined to create a retention policy.
6565

6666
You need to be assigned permissions in the Security & Compliance Center before you can use this cmdlet. For more information, see [Permissions in the Security & Compliance Center](https://docs.microsoft.com/microsoft-365/security/office-365-security/permissions-in-the-security-and-compliance-center).
6767

@@ -70,9 +70,11 @@ You need to be assigned permissions in the Security & Compliance Center before y
7070
### Example 1
7171
```powershell
7272
New-RetentionCompliancePolicy -Name "Regulation 123 Compliance" -ExchangeLocation "Kitty Petersen", "Scott Nakamura" -SharePointLocation "https://contoso.sharepoint.com/sites/teams/finance"
73+
New-RetentionComplianceRule -Name RetUnlimited -Policy "Regulation 123 Compliance" -RetentionDuration Unlimited
7374
```
7475

75-
This example creates a retention policy named "Regulation 123 Compliance" for the mailboxes of Kitty Petersen and Scott Nakamura, and the finance SharePoint Online site.
76+
The first command in this example creates a retention policy named "Regulation 123 Compliance" for the mailboxes of Kitty Petersen and Scott Nakamura, and the finance SharePoint Online site.
77+
The second command creates a new retention rule named "RetUnlimited" and adds it to the retention policy created with the fist command.
7678

7779
## PARAMETERS
7880

0 commit comments

Comments
 (0)