Power Shell Script delete from deleted items (Full Version)

All Forums >> [Microsoft Exchange 2010] >> General



Message


Gman0941 -> Power Shell Script delete from deleted items (19.Mar.2015 12:39:01 PM)

Guys, I am laughing a bit but need your help. I can not find the correct cmdlet to allow me to delete email in a single users mailbox in just ONE folder such as the deleted items. Everything I have found is for finding emails with subject lines. I am sure I am missing someting simple but am not afraid to ask for help! So anyone please help. Here is a simple delete script that works but again I am not sure how to direct the action to only one folder

Search-Mailbox -identity 'username' -searchquery {(Received -lt '01/01/2012' and Sent -lt '01/01/2012')} –DeleteContent

Thanks

G




Page: [1]