Solved

export contacts to pst powershell

Posted on 2015-01-16
3
3,361 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video discusses moving either the default database or any database to a new volume.

728 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

9 Experts available now in Live!

Get 1:1 Help Now