2013年8月25日 星期日

Exchange 取得超過一年未登入的信箱

Exchange 取得超過一年未登入的信箱


Get-Mailbox -Server xxx -ResultSize Unlimited | Get-MailboxStatistics | where {$_.Lastlogontime -lt (get-date).AddDays(-365)} | Select DisplayName, LastLogonTime,StorageLimitStatus  | Export-CSV -Encoding Unicode "C:\LastLogonTime365.txt" -NoTypeInformation

沒有留言:

張貼留言