Category Archives: Exchange

Get the Total Item Size for an Exchange database

Hey there! This one is for those Exchange admins who think it is a sin to use hands for something that a computer can do—those Exchange admins love their PowerShell console more than the Exchange Management Console. There are some … Continue reading

Posted in Exchange | Leave a comment

Mailbox Statistics report with Email addresses

Script to collect and export the mailbox properties from Get-Mailbox and Get-MailboxStatistics cmdlets to a CSV file This script can be extended based on the required attributes Get-Mailbox -ResultSize Unlimited  |  Select-Object DisplayName,  SamAccountName,servername,database, RecipientTypeDetails,PrimarySmtpAddress, HiddenFromAddressListsEnabled, @{label=”ItemCount”;expression={(Get-MailboxStatistics $_).ItemCount}}, @{label=”TotalItemSize”;expression={(Get-MailboxStatistics $_).TotalItemSize}},   @{label=”DeletedItemCount”;expression={(Get-MailboxStatistics $_).DeletedItemCount}}, @{label=”TotalDeletedItemSize”;expression={(Get-MailboxStatistics $_).TotalDeletedItemSize}}, @{label=”MailboxGuid”;expression={(Get-MailboxStatistics $_).MailboxGuid}}, @{label=”LastLogoffTime”;expression={(Get-MailboxStatistics $_).LastLogoffTime}},  @{label=”LastLogonTime”;expression={(Get-MailboxStatistics $_).LastLogonTime}},IssueWarningQuota, ProhibitSendQuota   Export-Csv “Path to the output file ” -NoTypeInformation

Posted in Exchange, PowerShell | Tagged , , , , , | Leave a comment