File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1111 $TenantFilter
1212 )
1313
14+ # Add rerun protection: This Monitor can only run once every hour.
15+ $Rerun = Test-CIPPRerun - TenantFilter $TenantFilter - Type ' ExchangeMonitor' - API ' Get-CIPPAlertQuarantineReleaseRequests'
16+ if ($Rerun ) {
17+ return $true
18+ }
1419 $HasLicense = Test-CIPPStandardLicense - StandardName ' QuarantineReleaseRequests' - TenantFilter $TenantFilter - RequiredCapabilities @ (
1520 ' EXCHANGE_S_STANDARD' ,
1621 ' EXCHANGE_S_ENTERPRISE' ,
2025 )
2126
2227 if (-not $HasLicense ) {
23- return
28+ return $true
2429 }
2530
2631 try {
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ function Test-CIPPRerun {
2121 ' Standard' { 9800 } # 2 hours 45 minutes ish.
2222 ' BPA' { 85000 } # 24 hours ish.
2323 ' CippTests' { 85000 } # 24 hours ish.
24+ ' Get-CIPPAlertQuarantineReleaseRequests' { 3500 } # about an hour
2425 default { throw " Unknown type: $Type " }
2526 }
2627 }
You can’t perform that action at this time.
0 commit comments