Dear All,
Apologies for late feedback. Both commands provided work to a certain extent however my exchange didnt export all of the mailbox, it remained in a queued state.
The following command below worked like a charm;
- Export the list of mailbox as csv / txt - similar to this: Get-Mailbox -ResultSize Unlimited|Get-MailboxStatistics|Select displayname,lastlogontime| sort lastlogontime -Descending| Export-CSV c:\temp\data.csv -NoTypeInformation
- Remove the other tabs leaving the mailbox names for example;
- Save the csv on the exchange server in any location, for example data.csv
- Open a notepad on the exchange server and save the following command as .ps1
$Mailboxes=get-content C:\temp\data.CSV
foreach($mailbox in $mailboxes)
{
New-MailboxExportRequest -Mailbox $mailbox -FilePath "\Network path\$mailbox.pst"}
- Run the command using Exchange Management Shell
Hope this is helpful, thanks for all your help, all answers has been really helpful.