Skip to content

Commit 0c3c7b0

Browse files
authored
Merge pull request MicrosoftDocs#11506 from pjsfonseca69/patch-2
Update Get-CaseHoldRule.md
2 parents 6a8ca3c + ab9f817 commit 0c3c7b0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ Get-CaseHoldRule [[-Identity] <ComplianceRuleIdParameter>]
2727
```
2828

2929
## DESCRIPTION
30+
In large environments, running this cmdlet without any parameters results in a timeout. As a workaround, you can run the following command:
31+
32+
`Get-ComplianceCase | foreach {Get-CaseHoldPolicy -Case $_.CaseId | foreach {Get-CaseHoldRule -Policy $_.Guid}}`
33+
3034
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).
3135

3236
## EXAMPLES

0 commit comments

Comments
 (0)