Solved

Export all mailboxes into PST

Posted on 2013-05-17
7
516 Views
Last Modified: 2013-05-23
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?
0
Comment
Question by:sglee
  • 4
  • 2
7 Comments
 
LVL 52

Accepted Solution

by:
Manpreet SIngh Khatra earned 128 total points
ID: 39176542
No need to install Outlook

Export command with 2010 SP1 onwards is "New-MailboxExportrequest" and not Export-Mailbox

http://markswinkels.nl/2011/04/how-to-bulk-export-mailboxes-to-pst-in-exchange-2010/
foreach ($mbx in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $mbx -FilePath “\\Server\SharedFolderName\$($mbx.Alias).pst” }

http://social.technet.microsoft.com/wiki/contents/articles/13908.bulk-export-mailboxes-to-pst-in-exchange-2010.aspx
$Export|%{$_|New-MailboxExportRequest -FilePath "file://servername/pst/$($_.alias).pst"}

Bulk Export Mailbox Exchange 2010
http://gallery.technet.microsoft.com/office/Bulk-Export-Mailbox-209f9bdb

- Rancy
0
 

Author Comment

by:sglee
ID: 39176564
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?
0
 

Author Comment

by:sglee
ID: 39176590
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
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 35

Assisted Solution

by:Cris Hanna
Cris Hanna earned 127 total points
ID: 39178083
Just curious as to why this effort to export mailboxes to PST?  is this just part of your back up plan?

Using the SBS Backup gets you an exchange aware backup, which you could then use the recovery storage group in Exchange to do what needs to be done.
0
 

Author Comment

by:sglee
ID: 39178621
@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.
0
 
LVL 35

Expert Comment

by:Cris Hanna
ID: 39179484
There's a great article here that may help you in your troubleshooting
http://exchangeserverpro.com/export-mailboxes-exchange-server-2010-sp1/
0
 

Author Comment

by:sglee
ID: 39179854
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?
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now