Skip to content

Commit 41cc557

Browse files
committed
cleanup rule tweak
1 parent 4735be7 commit 41cc557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/CIPPCore/Public/Entrypoints/Timer Functions/Start-TableCleanup.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function Start-TableCleanup {
1717
@{
1818
DataTableProps = @{
1919
Context = (Get-CIPPTable -tablename 'AuditLogSearches').Context
20-
Filter = "PartitionKey eq 'Search' and Timestamp lt datetime'$((Get-Date).AddDays(-1).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ'))'"
20+
Filter = "PartitionKey eq 'Search' and Timestamp lt datetime'$((Get-Date).AddHours(-12).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ssZ'))'"
2121
First = 10000
2222
Property = @('PartitionKey', 'RowKey', 'ETag')
2323
}

0 commit comments

Comments
 (0)