:查看详细的登陆情况和使用容量
Get-MailboxStatistics -Server dex01.tiptop.com | Sort LastLogonTime -Descending | Export-CSV d:\l.csv
2:Get-MailboxStatistics -Database "Mailbox Database"
3:搜集排名前1000的用户容量,在数据库DB100中,导出HTML格式。如果–server dex01.tiptop.com 省略,则查询所有的mailbox server
6:打印一些类
Get-MailboxStatistics -database "vip" |Format-table DisplayName,TotalItemSize,LastLoggedOnUserAccount,LastLogonTime,ServerName,DatabaseName >d:\1.txt
7:check database SIZE
Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize >d:\x.txt
8:列举服务器的邮箱数目
Get-Mailbox –ResultSize unlimited | Group-Object –Property:ServerName | Select Name,Count
9:检查mailbox database情况
Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize | Convertto-Html | out-File d:\report\MailBox.html
$body = get-content d:\report\MailBox.html | out-string
Send-Mailmessage -from [email protected] -to [email protected] -subject " Mailboxes Size check" -smtpserver mail.tiptop.com -body $body –bodyasHTML