Solved

export contacts to pst powershell

Posted on 2015-01-16
3
4,402 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

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
A procedure for exporting installed hotfix details of remote computers using powershell
This video discusses moving either the default database or any database to a new volume.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

822 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