Rammy Charles
asked on
Remove Deleted Items within Date Range via Exchange Management Shell
We are looking for an Exchange management shell command that will specify a user's mailbox and delete messages from their deleted items folder within a specified date range.
Any assistance would be appreciated.,
Any assistance would be appreciated.,
ASKER
Thanks is there any way to do this from the exchange management shell directly without the need for .pst files?
If possible we would like to use something like the below but specify the deleted items folder and a date range:
Search-Mailbox -Identity "April Stewart" -SearchQuery "Subject:'Your bank statement'" -DeleteContent
If possible we would like to use something like the below but specify the deleted items folder and a date range:
Search-Mailbox -Identity "April Stewart" -SearchQuery "Subject:'Your bank statement'" -DeleteContent
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This command below will do one individual user.
Open in new window
If you want to do this for multiple users at once use the below command...
Open in new window
Will.