Hello,
I've been looking through the forums/google to find a way to export bulk mailboxes to individual psts simultaneously. I've found multiple older threads on exporting these sequentially, but nothing at the same time. If anyone has any insight or code they can provide that I can use as a base, that would be great.
If anyone needs a script for doing this sequentially, the script is below.
I've been looking through the forums/google to find a way to export bulk mailboxes to individual psts simultaneously. I've found multiple older threads on exporting these sequentially, but nothing at the same time. If anyone has any insight or code they can provide that I can use as a base, that would be great.
If anyone needs a script for doing this sequentially, the script is below.
Code:
# Import Modules for Veeam interactionImport-Module Veeam.Archiver.PowerShellImport-Module Veeam.Exchange.PowerShell# Starting Restore Session with latest Restore Point$organization = Get-VBOOrganization -Name "ORG Name"Start-VBOExchangeItemRestoreSession -LatestState -Organization $organization# Starting the PST Export for all users in the csv$session = Get-VBOExchangeItemRestoreSession$database = Get-VEXDatabase -Session $session$Mailboxes = Import-Csv C:\temp\mailboxes.csv # Function to sanitize file namesfunction Sanitize-FileName($name) { return ($name -replace '[\\/:*?"<>|,]', '').Trim()}# Loop through each mailbox from your csv file.ForEach ($mailbox in $Mailboxes) { $user = Get-VEXMailbox -Database $database -Name $mailbox.Name $sanitizedName = Sanitize-FileName $mailbox.Name Export-VEXItem -Mailbox $user -To "V:\Downloaded PSTs\Test Exports\$sanitizedName.pst"}Statistics: Posted by robotrobot94 — Jul 22, 2025 8:12 pm






