IT 관련 이야기/SharePoint

Quick Tip> Get Mailbox Sizes in Exchange 2007 Through PowerShell (No Console GUI Available)

종소리도깨비 2008. 9. 18. 20:06
반응형

출처 : http://www.gilham.org/Blog/Lists/Posts/Post.aspx?List=aab85845%2D88d2%2D4091%2D8088%2Da6bbce0a4304&ID=252

From the Exchange Management Shell (PowerShell Command Line):

To Get Mailbox List With Size (Sorted by mailbox size):

Get-MailboxStatistics |sort $_.TotalItemSize |FT DisplayName,ItemCount,TotalItemSize

To Get Mailbox List With Size (Sorted by Mailbox Size, Only List Mailboxes Over 1GB in Size)

Get-MailboxStatistics |where {$_.TotalItemSize -gt -ne 1000mb} | sort $_.TotalItemSize |FT DisplayName,ItemCount,TotalItemSize

To Get Mailbox List With Size (Sorted by Mailbox Size, Only List Mailboxes Over 5GB in Size, Saved to a Text File on C:\)

Get-MailboxStatistics |where {$_.TotalItemSize -gt 1000MB} | sort $_.TotalItemSize |FT DisplayName,ItemCount,TotalItemSize >C:\MailboxStats.txt

If you need a GUI (sometime you do), check out PowerGUI which redirects PowerShell Outputs to a GUI like interface.

반응형