The first example retrieves the mailbox statistics for all mailboxes on the local server.
Note: |
|---|
|
You can use the Get-MailboxStatistics cmdlet without parameters only on a Mailbox server.
|
The second example retrieves the mailbox statistics for all mailboxes on the specified server.
The third example retrieves the mailbox statistics for the specified mailbox.
The fourth example retrieves the mailbox statistics for all mailboxes in the specified mailbox database.
The fifth example retrieves the mailbox statistics for all disconnected mailboxes. This example uses a WHERE clause. The $_ variable is used to specify the object that is passed on the pipeline. The -ne operator means "not equal."
Get-MailboxStatistics
Get-MailboxStatistics -Server MailboxServer01
Get-MailboxStatistics -Identity contoso\chris
Get-MailboxStatistics -Database "Mailbox Database"
Get-MailboxStatistics | Where {$_.DisconnectDate -ne $null}