?
Solved

Exchange 2007 export mailbox to pst and delete content

Posted on 2010-09-02
2
Medium Priority
?
1,589 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 2000 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

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

Here in this article, you will get a step by step guidance on how to restore an Exchange database to a recovery database. Get a brief on Recovery Database and how it can be used to restore Exchange database in this section!
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
how to add IIS SMTP to handle application/Scanner relays into office 365.
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…
Suggested Courses

862 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