获取邮箱大小为用户的服务器、 邮件存储区、 大小转换为 MB 和 GB
PowerShell
#get all the servers
get-mailboxserver MailServer* |
#get all the mail boxes
Get-Mailbox -ResultSize Unlimited |
#get mail box stat
Get-MailboxStatistics |
#select ones that are over 500MB
Where {$_.TotalItemSize -gt 500MB} |
#Select objects, create a convert to MB, create a convert to GB
Select-Object DisplayName, ItemCount, TotalItemSize, TotalDeletedItemSize, @{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}}, @{label=”Total Size (GB)”;expression={$_.TotalItemSize.Value.ToGB()}}, StorageLimitStatus, Database
#Select File to export to…
| Export-Csv All_users_mailbox_size.csv
Latest posts by Exchange中文站 (see all)
- 微软发布Azure PlayFab公众预览 - 2021年10月22日
- 微软发布全新云计算资料分析工具Azure Synapse - 2020年12月15日
- Exchange Server 版本号和发行日期汇总 - 2020年9月21日
发布于:
浏览:5243 次
还没有评论