Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Get-Mailbox -Identity <username> | Get-MailboxFolderStatistics -IncludeAnalysis -FolderScope All | Where-Object {(($_.TopSubjectSize -Match "MB") -and ($_.TopSubjectSize -GE 50.0)) -or ($_.TopSubjectSize -Match "GB")} | Select-Object Identity, TopSubject, TopSubjectSize | Export-CSV -path "C:\report.csv" -notype
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement