Find active mailboxes

To Find active mailboxes that logon the last 30 days:

Get-Mailbox
-ResultSize Unlimited –RecipientTypeDetails UserMailbox,SharedMailbox |
Where {(Get-MailboxStatistics $_.Identity).LastLogonTime -gt
(Get-Date).AddDays(-30)} | Sort -Property @{e={( Get-MailboxStatistics
$_.Identity).LastLogonTime}} -Descending | Select-Object
DisplayName,@{n="LastLogonTime";e={(Get-MailboxStatistics
$_.Identity).LastLogonTime}}

 

 

from: https://www.codetwo.com/admins-blog/list-of-active-mailboxes-powershell/

 

 

Schreibe einen Kommentar