jrojas1213
asked on
Exchange power shell 2010 - emptying deleted items folder
is there a way or a combination of cmdlets one could use to empty a users deleted folder ?
I have heard of search-mailbox but not seeing much in the help on how to use it.
I have heard of search-mailbox but not seeing much in the help on how to use it.
ASKER
yes I found that and did not work because that is deleting the dumpster which is where it goes after a user empties the deleted folder. that way when they say oops there is still time to recover it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the solution acbrown. I have applied the retention policy and found out that it does not apply the policy according to the mailbox processing which is set in my case to 24 hours. I have run Start-ManagedFolderAssista nt -Identity “Administrator” to force but the policy still has not applied. does it still take some time even after the force ?
Existing emails have to be "tagged" with the policy in order to get removed by it. You can do this by opening the mailbox is outlook and right-clicking the folder, then selecting the option to apply the existing retention policy (I think. I don't have a valid test in front of me at the moment. Working off memory).
Here you go:
Search-mailbox -identity <alias> -SearchDumpsterOnly -DeleteContent
http://stevehardie.com/2012/05/exchange-2010-purge-dumpster/