From 78ae52ee632ddb6f678d6c58a43f818d6a81f616 Mon Sep 17 00:00:00 2001 From: Robbie Ferguson Date: Mon, 22 Sep 2025 19:25:31 +0000 Subject: [PATCH] Update message-counter.ps1 --- message-counter.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message-counter.ps1 b/message-counter.ps1 index d4f8f47..76fb46c 100644 --- a/message-counter.ps1 +++ b/message-counter.ps1 @@ -38,4 +38,4 @@ (c) 2025 Robbie Ferguson. All rights reserved. #> -$u='mailbox@domain.com';$start='2025-01-01T00:00:00-05:00';$end='2025-02-01T00:00:00-05:00';$c=0; Get-MgUserMessage -UserId $u -Filter "receivedDateTime ge $start and receivedDateTime lt $end and isDraft eq false and (from/emailAddress/address ne '$u')" -CountVariable c -ConsistencyLevel eventual -PageSize 1 | Out-Null; $c \ No newline at end of file +$u='mailbox@domain.com';$start='2025-01-01T00:00:00-05:00';$end='2025-02-01T00:00:00-05:00';$c=0; Get-MgUserMessage -UserId $u -Filter "receivedDateTime ge $start and receivedDateTime lt $end and isDraft eq false and (from/emailAddress/address ne '$u')" -CountVariable c -PageSize 1 | Out-Null; $c \ No newline at end of file