Skip to content

Commit 56f7e9b

Browse files
endREceivedDate
1 parent 4fef647 commit 56f7e9b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Modules/CIPPCore/Public/Alerts/Get-CIPPAlertQuarantineReleaseRequests.ps1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@
2929
}
3030

3131
try {
32-
$RequestedReleases = New-ExoRequest -tenantid $TenantFilter -cmdlet 'Get-QuarantineMessage' -cmdParams @{ PageSize = 1000; ReleaseStatus = 'Requested'; StartReceivedDate = (Get-Date).AddHours(-6) } -ErrorAction Stop | Select-Object -ExcludeProperty *data.type* | Sort-Object -Property ReceivedTime
32+
$cmdParams = @{
33+
PageSize = 1000
34+
ReleaseStatus = 'Requested'
35+
StartReceivedDate = (Get-Date).AddHours(-6)
36+
EndReceivedDate = (Get-Date).AddHours(0)
37+
}
38+
$RequestedReleases = New-ExoRequest -tenantid $TenantFilter -cmdlet 'Get-QuarantineMessage' -cmdParams $cmdParams -ErrorAction Stop | Select-Object -ExcludeProperty *data.type* | Sort-Object -Property ReceivedTime
3339

3440
if ($RequestedReleases) {
3541
# Get the CIPP URL for the Quarantine link

0 commit comments

Comments
 (0)