Anthony K O365
asked on
Exchange Server 2016 Remove selected Items from Deleted Items folder
How can I use Search-Mailbox to find a specific item in the Deleted Items folder and remove it? (Perhaps searching against a csv or text file)
ASKER
Sent: <date>
From: <sender email>
Subject:
Would Export-Mailbox -Delete also be useful?
From: <sender email>
Subject:
Would Export-Mailbox -Delete also be useful?
I would use this:
or (1stI wanna know what will delete that's why the -WhatIf
then If I agree with the results to be removed I removed the WhatIf Parameter:
Search-Mailbox -Identity <mailbox to search from> -SearchQuery 'Subject:"The Subject" -LogLevel Full
or (1stI wanna know what will delete that's why the -WhatIf
Search-Mailbox -Identity <mailbox to search from> -SearchQuery 'Subject:"The Subject" -DeleteContent -WhatIf
then If I agree with the results to be removed I removed the WhatIf Parameter:
Search-Mailbox -Identity <mailbox to search from> -SearchQuery 'Subject:"The Subject" -DeleteContent
ASKER
These will only delete items and placed them in the Deleted Items folder. I need to search the Deleted Items folder and delete those specific items ( not purge ALL items from Deleted Items folder)
ASKER
Any further thoughts? thanks!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
have you ever used the Would Export-Mailbox -Delete command?
yeah I've used it like 10 years ago in an exchange server 2010 long time ago.
Message-id? date? something specific?