Delete emails from a specific folder in Exchange 2010 SP1
Hi all, Since Exchange 2010 SP1 does not have “-DeleteContent” parameter in mailboxexportrequest any more, how do we delete emails from a specific folder of a user mailbox? (Personal folder, not default folders). Please note that the ASQ for searchquery in Search-Mailbox does not support “folder”. If going for retention policy, is there a way to tag a retention policy to a specific folder of a user mailbox without user attention? William YangWilliam Yang
November 26th, 2011 10:27pm

Hi William, Yes, you may not run the Search-Mailbox to delete items in specific folder at the moment. Hope it will be back soon. You can create a Personal tag, users can apply personal tags to folders they create. But users have to select related Retention Policy using Outlook or OWA manually. For more information, please see: Understanding Retention Tags and Retention Policies http://technet.microsoft.com/en-us/library/dd297955.aspx Frank Wang Forum Support Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
Free Windows Admin Tool Kit Click here and download it now
November 28th, 2011 1:54am

yes, that is same as I got from Redmond ... thanks anyway William Yang
November 29th, 2011 10:56am

Maybe this could be something that will help you? http://www.mikepfeiffer.net/2011/04/powershell-script-cmdlets-for-managing-e-mail-items-using-the-exchange-web-services-managed-api/ Jonas Andersson | Microsoft Community Contributor Award 2011 | MCITP: EMA 2007/2010 | Blog: http://www.testlabs.se/blog | Follow me on twitter: jonand82
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2011 5:43am

yes, I already gave up the “search-mailbox” command. This commandlet is too weak. To resolve this, I just wrote a PowerShell script with EWS managed API. Looks working well ~ Ps, thanks for Glen’s excellent DEV blog.William Yang
December 4th, 2011 5:14am

Is it possible to have a look at your script ? Or sent me a copy to my snantel@gmail.com addr ?
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2012 11:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics