Solved

Export mailbox excluding contacts

Posted on 2010-08-24
5
555 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
  • 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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…
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create a User 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 >> Mailb…
In this video we show how to create an Address List 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 Organization >> Ad…

786 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