1、Get-Mailbox
office365 get-mailbox -identity temp
2、现在让我们将上面的命令传递给Get-MailboxStatistics cmdlet。类型:
Get-Mailbox -Identity username | GET-MailboxStatistics
3、Get-Help Get-MailboxStatistics
4、Get-Mailbox -Identity username | Get-MailboxStatistics | fl
5、Get-Mailbox -Identity Temp | Get-MailboxStatistics | Format-Table DisplayName, TotalItemSize, ItemCount -Autosize
6、Get-Mailbox | Get-MailboxStatistics | Format-Table DisplayName, TotalItemSize, ItemCount -Autosize
7、Get-Mailbox | Get-MailboxStatistics | Select DisplayName, TotalItemSize, ItemCount | Sort ItemCount -Descending
8、Get-Mailbox -Identity Temp | Get-MailboxStatistics | Format-Table DisplayName, @{name=”TotalItemSize (GB)”;expression={[math]::Round((($_.TotalItemSize.Value.ToString()).Split(“(“)[1].Split(” “)[0].Replace(“,”,””)/1GB),2)}},ItemCount
9、
Get-Mailbox | Get-MailboxStatistics | Select-Object DisplayName, @{name=”TotalItemSize (GB)”;expression={[math]::Round((($_.TotalItemSize.Value.ToString()).Split(“(“)[1].Split(” “)[0].Replace(“,”,””)/1GB),2)}},ItemCount | Sort “TotalItemSize (GB)” -Descending
10、导出CSVGet-Mailbox | Get-MailboxStatistics | Select-Object DisplayName, @{name="TotalItemSize (GB)";expression={[math]::Round((($_.TotalItemSize.Value.ToString()).Split(“(“)[1].Split(” “)[0].Replace(“,”,””)/1GB),2)}},ItemCount | Sort “TotalItemSize (GB)” -Descending | Export-CSV c:\temp\Office365-MailboxSize-Report.csv
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。