File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
# MFAReportMailboxes.ps1
2
2
# List mailboxes and the last time the Mailbox Folder Assistant processed each mailbox
3
- $Mbx = Get-Mailbox - RecipientTypeDetails UserMailbox - ResultSize Unlimited
4
- $Report = @ ()
3
+ # https://github.com/12Knocksinna/Office365itpros/blob/master/MFAReportMailboxes.ps1
4
+ $Mbx = Get-ExoMailbox - RecipientTypeDetails UserMailbox - ResultSize Unlimited
5
+ $Report = [System.Collections.Generic.List [Object ]]::new() # Create output file
6
+ Write-Host " Fetching details of user mailboxes..."
5
7
ForEach ($M in $Mbx ) {
6
8
$LastProcessed = $Null
7
9
Write-Host " Processing" $M.DisplayName
@@ -15,6 +17,7 @@ ForEach ($M in $Mbx) {
15
17
User = $M.DisplayName
16
18
LastProcessed = $LastProcessed
17
19
ItemsDeleted = $ItemsDeleted.Value }
18
- $Report += $ReportLine
20
+ $Report.Add ( $ReportLine )
19
21
}
20
22
$Report | Select User, LastProcessed, ItemsDeleted
23
+ $Report | Out-GridView
You can’t perform that action at this time.
0 commit comments