Google Code Prettify - 輕量級的語法上色工具

星期日, 5月 30, 2021

EXCHANGE Mail 查詢user信箱佔資料庫大小, Exchange - Get Top Huge Mailbox

執行 Exchange Management Shell ( ExchangePowerShell )

Get-Mailbox -ResultSize Unlimited | Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | Select-Object DisplayName,TotalItemSize,DatabaseName -First 30


TotalItemSize to TotalItemSizeGB

@{Name="TotalItemSizeGB";Expression={$_.TotalItemSize.Value.ToGB()}}