Solved

Exchange 2007 export mailbox to pst and delete content

Posted on 2010-09-02
2
1,554 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
Comment Utility
Try the following:

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

Expert Comment

by:endital1097
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Synchronize a new Active Directory domain with an existing Office 365 tenant
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
how to add IIS SMTP to handle application/Scanner relays into office 365.

743 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

13 Experts available now in Live!

Get 1:1 Help Now