HRSB
asked on
Purge all deleted items folders on Excahange 2013 Database
Looking at a script to purge all deleted items for all users on an exchange database.
Exchange Version = 2013
Folder to Purge = Deleted Items
I have been looking at scripts from 2010 but can't get search-mailbox / export-mailbox to work.
Any help would be greatly appreciated.
Matt
Exchange Version = 2013
Folder to Purge = Deleted Items
I have been looking at scripts from 2010 but can't get search-mailbox / export-mailbox to work.
Any help would be greatly appreciated.
Matt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Search-Mailbox -Identity "Nam_of_mailbox" -DeleteContent -Force
Before executing the command make sure you've exported all the mail content, once the command executes it will delete all the items, so use with caution.
You should have enough information to provide you with a solution.
https://blogs.msdn.microsoft.com/emeamsgdev/2013/08/05/powershell-purge-folder-of-items-over-a-certain-age/