mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-17 16:35:19 +00:00
Monitor external user activities in M365
Monitor external user activities in M365
This commit is contained in:
parent
c05d6ff551
commit
eeb7c8fff4
@ -4,7 +4,18 @@ Name: Audit Office 365 external user activities report
|
|||||||
Description: This script exports external user activities report to CSV
|
Description: This script exports external user activities report to CSV
|
||||||
Version: 1.0
|
Version: 1.0
|
||||||
Website: o365reports.com
|
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
|
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
|
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")
|
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
|
$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