Solved

export contacts to pst powershell

Posted on 2015-01-16
3
5,061 Views
Last Modified: 2015-01-28
need to export contacts to pst cant do it from outlook because of legal reasons
0
Comment
Question by:Jorge Ocampo
  • 2
3 Comments
 
LVL 10

Assisted Solution

by:nashiooka
nashiooka earned 333 total points
ID: 40554591
I'm writing this off the top of my head but it should be enough to get you through it.

If you are using Exchange 2010:
1) Make sure you have RBAC access to the "Mailbox Import Export" role.  You can do this using the GetManagementRoleAssignment -Role "Mailbox Import Export"

If you don't have access you'll have to add a role assignment:
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User <UserName>

Reload your EMS then use

New-MailboxExportRequest <UserName> -FilePath <MustBeUNC&IncludeTheFileName.pst> -IncludeFolders "contacts/"

You can user Get-MailboxExportRequest and Get-MailboxExportRequestStatistics to check the status.

Exchange 2007:
You need full access to the mailbox: Add-MailboxPermission -Identity <UserToExport> -User <YourUserName> -AccessRights FullAccess

Then
Export-Mailbox -Identity <MailboxIdParameter> -IncludeFolders '\contacts' -PSTFolderPath <Path\PSTFileName>

Exchange 2003 Use ExMerge, which is GUI and hard to document here.
0
 
LVL 8

Accepted Solution

by:
tshearon earned 167 total points
ID: 40554593
Use the Exchange Management shell and run:

New-MailboxExportRequest -Mailbox <username> -IncludeFolders "#Contacts#" -excludedumpster -filepath \\server\share\filename.pst

If you want the recoverable items folder then leave remve the -excludedumpster switch.
0
 
LVL 10

Assisted Solution

by:nashiooka
nashiooka earned 333 total points
ID: 40554598
Basically the same command but #Contacts# is the culture neutral syntax.  I might add that in either case if you want subfolders it should be "#Contacts#/*" or "Contacts/*" whichever should work.  If you look very closely at the help file for New-MailboxExportRequest it will detail this a bit in the explanation fir include / exclude folder parameters.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 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