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