Solved

Export mailbox excluding contacts

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

How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

Join & Write a Comment

Suggested Solutions

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
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 mailbox database 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 Servers >> Data…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…

760 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

20 Experts available now in Live!

Get 1:1 Help Now