Skip to content

Commit 9e4dfbb

Browse files
authored
Update Get-CaseHoldRule.md
1 parent 2798886 commit 9e4dfbb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 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 parametersresults in a timeout. As a workaround, you can run the following command:
31+
32+
`Get-ComplianceCase -Organization $org | 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
@@ -90,8 +94,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
9094
## OUTPUTS
9195
9296
## NOTES
93-
For large environments this command should not be executed with only Get-CaseHoldRule as it will timeout
94-
As a workaround you can run:
95-
Get-ComplianceCase -Organization $org | %{ Get-CaseHoldPolicy -Case $_.CaseId | %{ Get-CaseHoldRule -Policy $_.Guid }}
9697
9798
## RELATED LINKS

0 commit comments

Comments
 (0)