Solved

Export mailbox excluding contacts

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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exchnage 2013 Database - Dirty Shutdown 4 105
Can I have 2 essentials servers in one doamin? 4 51
outlook, autodiscover 1 59
Multiple Calendars on iOS devices? 9 44
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
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…
how to add IIS SMTP to handle application/Scanner relays into office 365.

752 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