From 37a1d0f310f238e1a724bce9b8b2324e829489fc Mon Sep 17 00:00:00 2001 From: Danny de Kooker Date: Thu, 6 Mar 2025 13:31:25 +0100 Subject: [PATCH] Switch arround the date and alias in the export name --- 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 2736308..4410d93 100644 --- a/Exchange/Export-all-mailboxes.ps1 +++ b/Exchange/Export-all-mailboxes.ps1 @@ -9,7 +9,7 @@ foreach ($Mailbox in $Mailboxes) { $CurrentMailbox++ # Start Export Request - $ExportName = "$($Mailbox.Alias)-$(Get-Date -Format "yyyyMMdd-HHmm")" + $ExportName = "$(Get-Date -Format "yyyyMMdd-HHmm")-$($Mailbox.Alias)" New-MailboxExportRequest -Name $ExportName -Mailbox $Mailbox.Identity -FilePath "$ExportPath\$($Mailbox.Alias).pst" Write-Host "Export started for: $($Mailbox.Alias). Waiting for completion..."