Get-mailbox together with get-mailboxstatistics


When you try to combine Get-mailbox with Get-MailboxStatistics and export it to csv-file, You will get nothing from the last command.

So here is a script that will allow You export the following.

From Get-Mailbox = Name
From Get-Mailbox = UserPrincipalName
From Get-Mailbox = Alias
From Get-MailboxStatistics = LastLogonTime
From Get-MailboxStatistics = LastLogofTtime
From Get-MailboxStatistics = Servername
From Get-MailboxStatistics = Databasename

Harri Jaakkonen
Author: Harri Jaakkonen

Leave a Reply

Your email address will not be published. Required fields are marked *