Update message-counter.ps1
This commit is contained in:
@ -38,4 +38,4 @@
|
|||||||
(c) 2025 Robbie Ferguson. All rights reserved.
|
(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
|
$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
|
||||||
Reference in New Issue
Block a user