Link to home
Start Free TrialLog in
Avatar of sglee
sglee

asked on

Export all mailboxes into PST

Hi,
 I have a SBS2011 with about 20 mailboxes.
 I like to know the Exchange Shell command to AUTOMATICALLY export each and every mailbox in my Exchange server into PST files. For example, Joe.pst, Sam.pst, Pat.pst ... etc.
 So far I successfully assigned the priviliage to network admin.

New-ManagementRoleAssignment –Role "Mailbox Import Export" –User Administrator

Then I tried this
Get-Mailbox –Database “MailboxDatabase.edb” | Export-Mailbox –PSTFolderPath C:\PST

but got an error. Fyi, I have one SBS2011, one exchange server with about 20 mailboxes.

Also it is necessary to install OUTLOOK 2010 64bit version on SBS2011 in order to export mailboxes into PST?
ASKER CERTIFIED SOLUTION
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sglee
sglee

ASKER

foreach ($mbx in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $mbx -FilePath “\\Server\SharedFolderName\$($mbx.Alias).pst” } is working.

Is there a way to schedule this so that I  can do this once a week?
Avatar of sglee

ASKER

another question:
when I check the status, there are so many mailboxes with errors and I can't tell which mailboxes are with errors by looking the result:

Name                                           Mailbox                                        Status                  
----                                           -------                                        ------                  
MailboxExport        DomainName.local/MyBusiness/Users/SBSUsers/M... Failed                  
MailboxExport        DomainName.local/MyBusiness/Users/SBSUsers/S... Failed                  
MailboxExport1      DomainName.local/MyBusiness/Users/SBSUsers/S... Failed                  
MailboxExport2      DomainName.local/MyBusiness/Users/SBSUsers/S... Failed                  
MailboxExport3    DomainName.local/MyBusiness/Users/SBSUsers/S... Completed                
MailboxExport        DomainName.local/Users/DiscoverySearchMailbo... Completed                
MailboxExport       DomainName.local/MyBusiness/Users/SBSUsers/D... Completed                
MailboxExport4      DomainName.local/MyBusiness/Users/SBSUsers/S... Failed
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sglee

ASKER

@bCrisHanna_MVP
Two reasons why I like to backup users mailboxes into PST.
(1) My SBS2011 Native Windows backup fails to Backup Exechange Server according to the message.
(2) Sometime users say that they have misplaced the folder or deleted a folder in OUTLOOK. If I have a PST, then I can a PST file into any OUTLOOK and retrieve the folder. I am sure how easy it is to retrieve or restore a single folder in user's malebox from Windows Backup
since I have never restored them before.
There's a great article here that may help you in your troubleshooting
http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1/
Avatar of sglee

ASKER

Let me take back what I said about Windows backup error with respect to exch restore. I did not know how to restore exch mailbox from Windows backup. Now I have read an article about it, I will try it.
Maybe I do not need to export mailbox using Exch Shell...
But I like to know why there were so many failures when I tried to create PST for every mailbox simultaneously?
You can use Stellar EDB to PST Converter to export each and every mailbox of Exchange server into PST files. The software exports single as well as multiple mailboxes to PST without any data loss. Software Trial version is available here:

https://www.stellarinfo.com/email-repair/edb-pst-converter.php