Solved

Exchange 2007 export mailbox to pst and delete content

Posted on 2010-09-02
2
1,559 Views
Last Modified: 2012-05-10
Good afternoon. I am trying to use powershell to export the contents of a users mailbox to pst and delete the content. This is the command I have run:

export-mailbox -identity pajaa -pstfolderpath \\server1\pst -excludefolders "\calendar" -deletecontent

The pst is created however contents are not deleted.

Basically we are migrating users to a new domain using quest migration manager and want to purge the old mailboxes but leave calendar items to allow users not yet migrated to still see busy information.

Many thanks, Dylan Armstrong
0
Comment
Question by:MourantSD
2 Comments
 
LVL 12

Accepted Solution

by:
GusGallows earned 500 total points
ID: 33589758
Try the following:

export-mailbox -identity pajaa -pstfolderpath \\server1\pst -excludefolders "\calendar" -deletecontent:$true
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33605262
Your syntax is correct, but I've never run it to remove everything but a single folder
Export-Mailbox pajaa -DeleteContent -ExcludeFolders "\Calendar" -PstFolderPath \\server1\pst -Confirm:$false
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
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…

867 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

18 Experts available now in Live!

Get 1:1 Help Now