Covert size value to mb/gb
Get-MailboxStatistics|select-object DisplayName,{$_.TotalItemSize.Value.ToMB()}
Get-MailboxStatistics|select-object DisplayName, {$_.TotalItemSize.Value.ToGB()}
Get-MailboxStatistics|select-object DisplayName, {$_.TotalItemSize/1.0MB}
Get-MailboxStatistics|select-object DisplayName, {$_.TotalItemSize/1.0GB}
因此,我們可以查詢整個信箱資料庫使用量,並匯出結果檔案到指定位置
ex查詢exchange 2007 中用戶現在信箱用了多少容量,以MB為單位,然後把結果匯出成.txt檔案,路徑放c:\下
之後可以
產生一個.txt
Get-MailboxStatistics|select-object DisplayName, {$_.TotalItemSize/1.0GB}
因此,我們可以查詢整個信箱資料庫使用量,並匯出結果檔案到指定位置
ex查詢exchange 2007 中用戶現在信箱用了多少容量,以MB為單位,然後把結果匯出成.txt檔案,路徑放c:\下
dragover="true">[PS]
C:\>Get-MailboxStatistics -Database "Mailbox Database" | select-object DisplayName, {$_.TotalItemSize/1.0MB} >c:\mailstatistics_20080729.txt
之後可以
產生一個.txt
參考資訊
a Matthew Wade blog-Single Point of Contact Convert the Get-MailboxStatistics output from Bytes to MB or GB in Exchange 2007.
http://aspoc.net/archives/2007/11/07/convert-the-get-mailboxstatistics-output-from-bytes-to-mb-or-gb-in-exchange-2007/
微軟技術社群討論區-2007控制台欄位問題
http://forums.microsoft.com/Technet-CHT/ShowPost.aspx?PostID=2073909&SiteID=23
http://forums.microsoft.com/Technet-CHT/ShowPost.aspx?PostID=2073909&SiteID=23
Mailboxstatistics Windows PowerShell Discussion Forums > PowerShellCommunity.org
http://powershellcommunity.org/Forums/tabid/54/view/topic/postid/2067/forumid/3/Default.aspx
(20080729 補充圖片)
http://powershellcommunity.org/Forums/tabid/54/view/topic/postid/2067/forumid/3/Default.aspx
(20080729 補充圖片)
沒有留言:
張貼留言