Exchange Powershell 中导出30天没有登录邮箱的用户列表

Get-Mailbox -ResultSize Unlimited| Get-Mailboxstatistics | where-object {$_.LastLogonTime -lt (get-date).AddDays(-30)} |select DisplayName,TotalItemSize,LastLogonTime | Export-Csv d:\Disablemailinfo.csv -Encoding utf8

posted @ 2020-07-12 20:55  会飞的老虎  阅读(290)  评论(0编辑  收藏  举报