get-mailboxstatistics and disconnected mailboxes
I've been asked when running the following command"Get-MailboxStatistics | Sort-Object TotalItemSize Descending | ft DisplayName,@{ expression={$_.TotalItemSize.Value.ToKB()}},ItemCount" why do the disconnected mailboxes show up in the report? I know how to exlude the disconnected mailboxes.ThanksD
February 27th, 2009 5:11pm

What about including something like:Get-MailboxStatistics -Server mb01 | where {$_.DisconnectDate -eq $Null}Mike Crowley: MCT, MCSE, MCTS, MCITP: Enterprise Administrator / Messaging Administrator
Free Windows Admin Tool Kit Click here and download it now
February 27th, 2009 6:16pm

Hi,Because is it common cmdlet for all mailboxes (connected and disconnected) of Mailbox Server :)References:Get-MailboxStatisticshttp://technet.microsoft.com/en-us/library/bb124612.aspxAmit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
February 27th, 2009 6:20pm

Thanks. I understand the cmdlet and what it does but management is having a hard time comprehending it. Isit safe to assume that if the command does not include the database parameter then the default is a query on all of the databases. Thanks,D
Free Windows Admin Tool Kit Click here and download it now
February 28th, 2009 5:06pm

Yeh, that's true, it takes time to believe when entire method is changed to manage the environment but trust me, Exchange 2007 PowerShell has even better capability and easier way to manage/administrate programmatically compare to older version, specially when somebody start understanding what it can do... :)Well,Get-MailboxStatistics requires either Database or Server parameter, it is mandatory so if you give Server paramater then yes, it does query on all databases of that server...Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
February 28th, 2009 5:31pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics