mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-17 16:35:19 +00:00
851 B
851 B
How to Delete Older Emails in Outlook Using PowerShell
This PowerShell script deletes older emails in Outlook after X number of days using the Search-Mailbox and DeleteContent.
Sample Content:
This script exports an output CSV file with deletion specifications that look similar to the screenshot below.
Microsoft 365 Auditing tool by AdminDroid
Transform your Microsoft 365 data into actionable insights with AdminDroid Microsoft 365 Auditing tool, it offers over 1800 pre-built reports and dynamic dashboards to help you manage your data with ease.
Access more comprehensive M365 reports with AdminDroid: https://demo.admindroid.com
