차곡차곡 운영을 위해 자료 수집 중~
Get-MailboxStatistics [username]
Get-MailboxStatistics [username] | ft DisplayName, TotalItemSize, ItemCount
| where {$_.ObjectClass –eq “Mailbox”}
| Sort-Object TotalItemSize –Descending
@{expression={$_.TotalItemSize.Value.ToMB()}
@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}
@{label=”Items”;expression={$_.ItemCount}}
@{label=”Storage Limit”;expression={$_.StorageLimitStatus}}
@{label=”User”;expression={$_.DisplayName}}
final code ... ^^
Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} -auto
출처 : Getting Mailbox Sizes in PowerShell
Friday, June 10, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment