Channel | Publish Date | Thumbnail & View Count | Actions |
---|---|---|---|
| 2022-04-17 08:30:03 | ![]() 5,708 Views |
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.