Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 8820

Powershell to Remove Emails for a certain date range

$
0
0

We are about to move our Email Archive System and are not going to be using stubs anymore.  Our current Email Archive System doesn't provide a solution to remove all the stubs we currently have in Exchange 2010 for all users.  So i need a Powershell command or script to do this and wonder if anyone hand one handy.  It needs to remove all emails/stubs over 6 months old from all folders on all users mailboxes.  It might be safer to move them to another mailbox if i can so any that aren't stubs can be moved back.  

Also it would be really helpful if the command first off did this on just one user so i can test it before using it on all users, or can it be ran against a single database - as i can guess this command is going to take some time as we have stubs going back to 2006 on 200 mailboxes.

Thanks


Viewing all articles
Browse latest Browse all 8820

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>