Monday 23 July 2012

get information on a mailbox in exchange 2007

start the exchange powershell console

Get-Mailbox mailboxname | Select-Object name,primarysmtpaddress, DisplayName,Database,@{n="Size(MB)";e = {$MBXstat = Get-MailboxStatistics $_.name; $MBXstat.totalItemsize.value.toMB()}},@{n="Items"; e = {$MBXstat = Get-MailboxStatistics $_.name ; $MBXstat.itemcount}}

No comments:

Post a Comment