Answered by:
get-mailboxstatistics and disconnected mailboxes

Question
-
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.
Thanks
DFriday, February 27, 2009 2:11 PM
Answers
-
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- Marked as answer by Alan.Gim Monday, March 2, 2009 1:33 AM
Saturday, February 28, 2009 2:31 PM
All replies
-
What about including something like:
Mike Crowley: MCT, MCSE, MCTS, MCITP: Enterprise Administrator / Messaging Administrator- Edited by Mike Crowley Friday, February 27, 2009 3:37 PM fixed syntax
- Proposed as answer by Mike Crowley Friday, February 27, 2009 3:37 PM
Friday, February 27, 2009 3:16 PM -
Hi,Because is it common cmdlet for all mailboxes (connected and disconnected) of Mailbox Server :)References:Get-MailboxStatistics
Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.comFriday, February 27, 2009 3:20 PM -
Thanks. I understand the cmdlet and what it does but management is having a hard time comprehending it. Is it 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,
DSaturday, February 28, 2009 2:06 PM -
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- Marked as answer by Alan.Gim Monday, March 2, 2009 1:33 AM
Saturday, February 28, 2009 2:31 PM