How to find/view deleted emails in Exchange Online | Using PowerShell #Microsoft #PowerShell

How to find/view deleted emails in Exchange Online | Using PowerShell #Microsoft #PowerShell

HomeOther ContentHow to find/view deleted emails in Exchange Online | Using PowerShell #Microsoft #PowerShell
ChannelPublish DateThumbnail & View CountActions
Channel Avatar TechTrip2022-04-17 08:30:03 Thumbnail
5,708 Views
This video will show you how to use PowerShell to display information about deleted mail stored in the exchange mailbox.

1) To view//display only mail items that are stored in the Deleted Items (recycle bin) folder, we can use the following syntax:

Get-RecoverableItems /”UserEmailAddress/” -SourceFolder DeletedItems | Sort-Object desc

2) To display deleted emails in the recoverable folder
Get-RecoverableItems /”UserEmailAddress/” -SourceFolder RecoverableItems

3) To display deleted emails that have a specific text in their subject
Get-RecoverableUtems /”UserEmailAddress/” -SubjectContains “Subject”

4)To count the number of deleted mail items (total)
(Get-recoverableItems /”UserEmailAddress/”).count

5) To export the result
Get-recoverableItems /”UserEmailAddress/” | Export-csv /”ThePath/”

#Office365 #PowerShell #howto #exchangeonline #exchange

Please take the opportunity to connect and share this video with your friends and family if you find it useful.