diff --git a/Audit External User Activity/AuditExternalUserActivity.ps1 b/Audit External User Activity/AuditExternalUserActivity.ps1 index e28a259..ee2dfe7 100644 --- a/Audit External User Activity/AuditExternalUserActivity.ps1 +++ b/Audit External User Activity/AuditExternalUserActivity.ps1 @@ -4,7 +4,18 @@ Name: Audit Office 365 external user activities report Description: This script exports external user activities report to CSV Version: 1.0 Website: o365reports.com -Script by: O365Reports Team + +Script Highlights: +~~~~~~~~~~~~~~~~~~ + +1.The script uses modern authentication to connect to Exchange Online. +2.The script can be executed with MFA enabled account too. +3.Exports report results to CSV file. +4.The script tracks all the external users or a specific user activity based on the input. +5.Allows you to generate an activity report for a custom period. +6.Automatically installs the EXO V2 module (if not installed already) upon your confirmation. +7.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/2022/02/10/audit-office-365-external-user-activities-using-powershell ============================================================================================ #> @@ -224,10 +235,13 @@ If($OutputEvents -eq 0) } else { - Write-Host `nThe output file contains $OutputEvents audit records + Write-Host `nThe output file contains $OutputEvents audit records `n if((Test-Path -Path $OutputCSV) -eq "True") { - Write-Host `nThe Output file availble in $OutputCSV -ForegroundColor Green + Write-Host " The Output file availble in:" -NoNewline -ForegroundColor Yellow + Write-host $OutputCSV + 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 $UserInput = $Prompt.popup("Do you want to open output file?",` 0,"Open Output File",4)