Solved

Export mailbox excluding contacts

Posted on 2010-08-24
5
566 Views
Last Modified: 2012-05-10
Hi,

One of the users had multiple contacts in his mailbox, I went ahead and removed all of them from Outlook, emptied deleted items. When I attempted to export mailbox using cmdlet
Export-Mailbox -Identity user1 -PSTFolderPath c:\user1.pst
I noticed that it also exports contacts that should have not been there. I have deleted items/mailboxes recovery set to 2 days.

How do I either remove user's contacts from the server or export all mailbox excluding contacts?

Thank you
0
Comment
Question by:Coffinated
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:59cal
ID: 33512490
hi

can you try this:

Export-Mailbox -TargetMailbox  -TargetFolder  -ExcludeFolders "\Contacts"
0
 
LVL 10

Expert Comment

by:dhruvarajp
ID: 33512511

you might be interested in the OPTION  Excludefolders

http://technet.microsoft.com/en-us/library/aa998579(EXCHG.80).aspx 
0
 
LVL 5

Author Comment

by:Coffinated
ID: 33512605
59cal:

I want to export everything to PST file, not to another mailbox, sorry forgot to mention that.
0
 
LVL 3

Accepted Solution

by:
59cal earned 500 total points
ID: 33512645
Hi,
Try this:

Export-Mailbox -Identity  -PSTFolderPath \.pst -ExcludeFolders "\Contacts"
0
 
LVL 5

Author Comment

by:Coffinated
ID: 33512655
I added -ExcludeFolder switch to my command and it seems to be working
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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
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…

749 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