mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-17 16:35:19 +00:00
Audit email deletions in Exchange Online mailboxes
Audit email deletions in Exchange Online mailboxes
This commit is contained in:
parent
b1e86d9b80
commit
c05d6ff551
@ -2,8 +2,20 @@
|
|||||||
=============================================================================================
|
=============================================================================================
|
||||||
Name: Audit Email Deletion in Office 365
|
Name: Audit Email Deletion in Office 365
|
||||||
Description: This script exports deleted emails audit records to CSV
|
Description: This script exports deleted emails audit records to CSV
|
||||||
website: o365reports.com
|
Website: o365reports.com
|
||||||
Script by: O365Reports Team
|
|
||||||
|
|
||||||
|
Script Highlights:
|
||||||
|
~~~~~~~~~~~~~~~~~
|
||||||
|
1. The script uses modern authentication to retrieve audit logs.
|
||||||
|
2. The script can be executed with MFA enabled account too.
|
||||||
|
3. Exports report results to CSV file.
|
||||||
|
4. Allows you to track all the deleted emails.
|
||||||
|
5. Helps to find out who deleted email from a shared mailbox.
|
||||||
|
6. Allows you to generate an email deletion audit report for a custom period.
|
||||||
|
7. Automatically installs the EXO V2 module (if not installed already) upon your confirmation.
|
||||||
|
8. The script is scheduler-friendly. I.e., Credential can be passed as a parameter instead of saving inside the script.
|
||||||
|
|
||||||
For detailed Script execution: https://o365reports.com/2021/09/02/audit-email-deletion-in-office-365-mailbox-powershell
|
For detailed Script execution: https://o365reports.com/2021/09/02/audit-email-deletion-in-office-365-mailbox-powershell
|
||||||
============================================================================================
|
============================================================================================
|
||||||
#>
|
#>
|
||||||
@ -243,8 +255,10 @@ else
|
|||||||
Write-Host `nThe output file contains $OutputEvents audit records
|
Write-Host `nThe output file contains $OutputEvents audit records
|
||||||
if((Test-Path -Path $OutputCSV) -eq "True")
|
if((Test-Path -Path $OutputCSV) -eq "True")
|
||||||
{
|
{
|
||||||
Write-Host `nThe Output file availble in $OutputCSV -ForegroundColor Green
|
Write-Host `n" The Output file available in:" -NoNewline -ForegroundColor Yellow; Write-Host $OutputCSV
|
||||||
Write-Host `nFor more Office 365 related PowerShell scripts, check https://o365reports.com -ForegroundColor Cyan
|
Write-Host `n~~ Script prepared by AdminDroid Community ~~`n -ForegroundColor Green
|
||||||
|
Write-Host "~~ Check out " -NoNewline -ForegroundColor Green; Write-Host "admindroid.com" -ForegroundColor Yellow -NoNewline;
|
||||||
|
Write-Host " to get access to 1800+ Microsoft 365 reports. ~~" -ForegroundColor Green `n`n
|
||||||
$Prompt = New-Object -ComObject wscript.shell
|
$Prompt = New-Object -ComObject wscript.shell
|
||||||
$UserInput = $Prompt.popup("Do you want to open output file?",`
|
$UserInput = $Prompt.popup("Do you want to open output file?",`
|
||||||
0,"Open Output File",4)
|
0,"Open Output File",4)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user