Skip to content

Commit 7a7f72f

Browse files
authored
Merge pull request MicrosoftDocs#11517 from pesq/patch-1
There is an error in the last change in the article. Submitting this change with the fix.
2 parents 8da529b + b9276a4 commit 7a7f72f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exchange/exchange-ps/exchange/Get-CaseHoldRule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Get-CaseHoldRule [[-Identity] <ComplianceRuleIdParameter>]
2929
## DESCRIPTION
3030
In large environments, running this cmdlet without any parameters results in a timeout. As a workaround, you can run the following command:
3131

32-
`Get-ComplianceCase | foreach {Get-CaseHoldPolicy -Case $_.CaseId | foreach {Get-CaseHoldRule -Policy $_.Guid}}`
32+
`Get-ComplianceCase | foreach {Get-CaseHoldPolicy -Case $_.Identity | foreach {Get-CaseHoldRule -Policy $_.Guid}}`
3333

3434
To use this cmdlet in Security & Compliance PowerShell, you need to be assigned permissions. For more information, see [Permissions in the Microsoft Purview compliance portal](https://learn.microsoft.com/purview/microsoft-365-compliance-center-permissions).
3535

0 commit comments

Comments
 (0)