Need help bulk exporting mailboxes

Status
Not open for further replies.
D

David Alge

I am trying to export several mailboxes in bulk and getting errors. I am going into the Exchange Shell and performing the following command:

[PS] C:\pstexport>Get-Mailbox -Database " Tier3-500MB" -ResultSize Unlimited | Export-Mailbox -PstFolderPath " C:\PSTEXPORT"
Directory 'C:\PSTEXPORT' does not exist, please create it first and try again.
+ CategoryInfo : ObjectNotFound: :)) [], RecipientTaskException
+ FullyQualifiedErrorId : 9D2F87F0

Invoke-Command : Cannot write input as there are no more running pipelines
At C:\Users\dalge\AppData\Roaming\Microsoft\Exchange\RemotePowerShell\qhsvmail2.qualitestrx.com\qhsvmail2.qualitestrx.c
om.psm1:6705 char:29
+ $scriptCmd = { & <<<< $script:InvokeCommand `
+ CategoryInfo : InvalidOperation: :)) [Invoke-Command], PSInvalidOperationException
+ FullyQualifiedErrorId : NoMoreInputWrite,Microsoft.PowerShell.Commands.InvokeCommandCommand

This is after I gave my ID the export and import role permissions. As you can see, the folder that I specified for the PST's is created but it tells me that it isn't. I will be eventually exporting all mailboxes and decided to export based on our smallest database first.

Thanks so much for your help,

David
 
D

David Alge

We have not upgraded to SP1, so this command " New-MailboxExportRequest" is not available to us I am assuming as I got errors saying it wasn't available. The last updates on our Exchange was one of the last rollups prior to SP1. Since we will be moving these mailboxes to a mailserver outside of our domain, I don't have plans to upgrade to SP1. Is there a script or command I can use to export all mailboxes on our Exchange 2010 server to PST's without the need or requirement to go to SP1?
 
T

Troy Werelius

I personally think you are better of to upgrade to SP1 since its not as complicated to do exports and many problematic issues on the import export process were resolved as well. Also SP1 does away with the requirement for Outlook to be on the box. Another option to consider is to use a 3rd party utility like Lucid8's DigiScope http://www.lucid8.com/product/digiscope.asp which is straight forward, has a nice GUI and there are also affordable project based licenses However, if you really want to try the 2010 RTM export here is the scoop

Currently, there is a known bug where export-mailbox and import-mailbox commands will not work on an Exchange Server that has the CAS server role installed together with the Mailbox role. If this is a case in your environment you will have to either export via Outlook or install a separate Exchange machine with only Mailbox role and Outlook 2010 64-bit in order to be able to do mass export/import.
ASSIGNING NECESSARY ROLE AND PERMISSIONS
Members of the Microsoft Exchange Security Group " Organization Management" have the authority to assign the " Mailbox Import Export" role to other users.
To assign the " Mailbox Import Export" role to an individual user use the following syntax:
New-ManagementRoleAssignment -Role " Mailbox Import Export" -User JohnD

To assign the " Mailbox Import Export" role to a Windows security group, use the following syntax.
New-ManagementRoleAssignment -Role " Mailbox Import Export" -SecurityGroup Administrators
In addition to the " Mailbox Import Export" role, the user which will actually perform export / import must also be member of the local Administrators group on the Exchange server on which the export operation is taking place.
&emsp;
EXPORTING MAILBOXES TO .PST FILES.
In order to export mailboxes to .PST
1. On an Exchange 2010 mailbox server install Outlook 2010 64-bit
2. Created the folder on your hard drive where mailboxes will be exported, for example c:\pstexport
3. Assign the role and groups membership to the person which will be doing the export
4. Export mailboxes
Here are few common export command samples:
Export a single mailbox for user JohnD to a directory c:\pstexport
Export-Mailbox -Identity JohnD -PstFolderPath c:\pstexport
Export all mailboxes from a designated mailbox database
Get-Mailbox -Database " mailbox database 56774113" -ResultSize Unlimited | Export-Mailbox -PstFolderPath c:\pstexport
Export all mailboxes from a designated server
Get-Mailbox -Server ExchangeMB -ResultSize Unlimited | Export-Mailbox -PstFolderPath c:\pstexport
Export all mailboxes from the entire Exchange organization (from all servers and all databases)
Get-Mailbox -ResultSize Unlimited | Export-Mailbox -PstFolderPath c:\pstexport
Export all mailboxes for users in a specific AD Organizational Unit
Get-Mailbox -OrganizationalUnit Corporate -ResultSize Unlimited | Export-Mailbox -PstFolderPath c:\pstexport
TROUBLESHOOTING MAILBOX EXPORT
Case 1: Export does not work when CAS role is installed together with the mailbox role.
When you try to export a mailbox to a .PST file using the Export-Mailbox PowerShell command you receive the following error:
StatusCode : -2147221219
StatusMessage : Error occurred in the step: Approving object. An unknown error has occurred.
Currently there is a known bug, where export-mailbox and import-mailbox commands will not work on an Exchange Server that has the CAS server role installed together with the Mailbox role.
Workaround 1
In case you have a single or smaller number of mailboxes, you can use Outlook 2010 to export user mailbox to a .PST file. In Outlook 2010 Export functionality can be found under File/Options/Advanced/Export
Workaround 2
Install a separate Exchange machine with only Mailbox role and Outlook 2010 64-bit

Troy Werelius
www.Lucid8.com
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
Marc2019 Need help please! Cannot Setup my outlook email account on my Mac Outlook 2011 Using Outlook.com accounts in Outlook 2
C need help setting up outlook first time Using Outlook 1
N Need help syncing contacts to iPhone X Using Outlook 8
S Error using AddressEntry.GetContact - need help Outlook VBA and Custom Forms 2
EaglePI Outlook 2010 need help with rules Using Outlook 0
B Need Help - Willing to pay Outlook VBA and Custom Forms 10
J Need Help with Contacts VBA Outlook VBA and Custom Forms 1
H Need help setting up GetFolderPath-Makro with Vodafone IMAP Mail-Account Outlook VBA and Custom Forms 0
T Need help with finding/updating task Outlook VBA and Custom Forms 1
Denis Hi everyone!!! Need some help with Excel to Exchange Calendar??PLEASE>>> Using Outlook 1
E Need Help on Setting up a repeated Reminder on Task with Reoccurence Every Year Using Outlook 6
B Need Help Creating Email Based on Subject w Address in Body Outlook VBA and Custom Forms 1
G Need help configuring a PRF for Outlook 2010 and 2013 Using Outlook 0
K Excel Import Option: Need Help Updating Existing Records BCM (Business Contact Manager) 0
K Need help concerning emails linking to BCM. BCM (Business Contact Manager) 0
J Need help with installation of BCM in Outlook2013 BCM (Business Contact Manager) 5
F Outlook 2010 - Need help with a custom field. Using Outlook 3
D Need Help with Script. Keep getting Runtime Error 438 BCM (Business Contact Manager) 4
R Need help getting BCM to work with my Outlook 2014 Using Outlook 4
L Need help getting calendar/contacts/tasks/notes back! Using Outlook 3
R [VBA] complicated(?) outlook events - need help with code Using Outlook 15
P Need help/Gmail accounts show separately/Outlook 2013 Using Outlook 0
J Need Help Extracting Email Content into Excel Specifically the Attachment Name Using Outlook 3
A Need Help with BCM2010 Sharing on outlook 2013 Scenario! BCM (Business Contact Manager) 1
C Need Help with Simple Code Correction Using Outlook 11
W I Need help with vb.net and outlook 2010 Using Outlook 2
A My move to MS is not going too well: Need Help !!! Using Outlook 14
M Need help with combo boxes in messages! Using Outlook 10
D Need help understanding which pst-file to use! Using Outlook 0
U Need a help please Outlook 2007 crashing Using Outlook 2
Z Need Help Outlook 2007 inbox and address book view Using Outlook 2
B Need help adding a background color to the compact list items in Month view. Calendar Printing Assistant 1
B Need help adding an image next to the Month Name in the header. Calendar Printing Assistant 1
B Ok - a complicated one - but really need help (auto formatting) Using Outlook 9
B OUTLOOK 2000, Need Help ! Outlook Wishlist 1
P To Use BCM or not...I need help BCM (Business Contact Manager) 1
T Need help making RULE to prepend email SUBJECT Using Outlook 3
V Need help on configuring Outook 2003 Rules and Alerts... Using Outlook 2
A Need Help Urgent !!!- Add Seconde Node To The DAG Exchange Server Administration 12
M Need help w/ Calendar Events not appearing in Outlook 2010 Using Outlook 1
N Need Help with Outlook 2010 Using Outlook 1
G Need help in merging data from multiple .pst data files into one .pst file. Using Outlook 3
F Incoming email titles - i need them back (please help...) Using Outlook 2
B Need help with contact recovery, since trial of Office 2010 has ended. Using Outlook 2
M Need Help on Designing Exchange 2010 Email Solution for 4000 Users Exchange Server Administration 1
S OL2007/XP views will not retain settings. Really need some help here. Using Outlook 2
D Need help repairing Outlook 2010. Using Outlook 2
D Need help with word wrap in Outlook 2010. Using Outlook 5
L Windows Instant Search Indexing not working need help reading Event Log Using Outlook 2
N need help retrieving email from previous Outlook Profile Using Outlook 7

Similar threads

Top