Question : Export mailbox excluding contacts

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

Answer : Export mailbox excluding contacts

Hi,
Try this:

Export-Mailbox -Identity <MailboxIdParameter> -PSTFolderPath <Path_Of_PST_Folder>\<File_Name>.pst -ExcludeFolders "\Contacts"
Random Solutions  
 
programming4us programming4us