Script to list database size in a cluster CCR environment
Hi guys, I'm looking for a script to list all database size in a cluster CCR environment. Does anyone have an idea? Thx
November 18th, 2009 5:45pm
Hi,Try this:http://www.exchangeninjas.com/MbxDBStatsv2OliverOliver Moazzezi | Exchange MVP, MCSA:M, MCTS:Exchange 2010, BA (Hons) Anim
| http://www.exchange2007.com | http://www.exchange2010.com | http://www.cobweb.com |
Free Windows Admin Tool Kit Click here and download it now
November 18th, 2009 5:59pm
Thx, it's working... but I'd prefer to get the size in MB.
November 18th, 2009 6:18pm
Excellent script! One of the methods for the type ByteQuantifiedSize is ToMB(). Change this line:
$retObj | add-member noteproperty -name "Size" -value $dbSizeQ
to
$retObj | add-member noteproperty -name "Size (MB)" -value $dbSizeQ.ToMB()MCTS: Messaging | MCSE: S+M | Small Business Specialist
Free Windows Admin Tool Kit Click here and download it now
November 19th, 2009 4:07am
That site doesn't exist anymore. Anyone have an updated link?
April 4th, 2011 7:18pm
Hi guys,
Try the command
Show the mailbox in MB
Get-mailbox | get-mailboxstatistics | ft @{ expression = {$_.DisplayName}; Label = "DisplayName"; Width = 20 }, @ { Expression = {$_.ItemCount}; Label = "Item Count"; width = 10 }, @ { Expression = {$_.totalitemsize.value.toMB() }; Label = "Total Item Size
(MB) "; Width = 10 }
Show the mailbox in KB
Get-mailbox | get-mailboxstatistics | ft @{ expression = {$_.DisplayName}; Label = "DisplayName"; Width = 20 }, @ { Expression = {$_.ItemCount}; Label = "Item Count"; width = 10 }, @ { Expression = {$_.totalitemsize.value.toKB() }; Label = "Total Item Size
(KB) "; Width = 10 }
Thanks Joseph Pradeep
Free Windows Admin Tool Kit Click here and download it now
April 4th, 2011 9:35pm