From 1f7e50e8042db689d16268b07a93cc74ada16bb9 Mon Sep 17 00:00:00 2001 From: Danny de Kooker Date: Thu, 6 Mar 2025 08:59:22 +0100 Subject: [PATCH] Added a counter for current mailbox --- Exchange/Export-all-mailboxes.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Exchange/Export-all-mailboxes.ps1 b/Exchange/Export-all-mailboxes.ps1 index 66c25d3..2736308 100644 --- a/Exchange/Export-all-mailboxes.ps1 +++ b/Exchange/Export-all-mailboxes.ps1 @@ -28,7 +28,7 @@ foreach ($Mailbox in $Mailboxes) { $OverallPercentComplete = [math]::Round((($CurrentMailbox - 1 + ($MailboxPercentComplete / 100)) / $TotalMailboxes) * 100, 2) # Display Progress Bar for Overall Process - Write-Progress -Activity "Exporting Mailboxes" ` + Write-Progress -Activity "Exporting Mailboxes ($($CurrentMailbox)/$($TotalMailboxes))" ` -Status "Processing: $($Mailbox.Alias) ($MailboxPercentComplete% complete)" ` -PercentComplete $OverallPercentComplete } while ($ExportRequest)