View M365 Users' real last activity time report

View M365 Users' real last activity time report
This commit is contained in:
AdminDroid 2023-10-06 18:08:42 +05:30
parent 16495550f3
commit 6da61c9935

View File

@ -4,6 +4,21 @@ Name: Export Office 365 users real last activity time report
Version: 3.0
Website: o365reports.com
Script by: O365Reports Team
Script Highlights:
~~~~~~~~~~~~~~~~~
1.Reports the users activity time based on the users last action time(LastUserActionTime).
2.Exports result to CSV file.
3.Result can be filtered based oninactive days.
4.You can filter the result based onuser/mailbox type.
5.Result can be filtered to listnever logged in mailboxesalone.
6.You can filter the result based on licensed user.
7.Shows result withthe users administrative rolesin the Office 365.
8.The assigned licenses column will show you theuser-friendly-namelike Office 365 Enterprise E3 rather than ENTERPRISEPACK.
9.The script can be executed withMFA enabled account.
10.The script is scheduler friendly. i.e., credentials can be passed as a parameter instead of saving inside the script.
For detailed script execution: https://o365reports.com/2019/06/18/export-office-365-users-real-last-logon-time-report-csv/#
============================================================================================
#>
@ -265,7 +280,10 @@ Function main()
Write-Host `nScript executed successfully
if((Test-Path -Path $ExportCSV) -eq "True")
{
Write-Host "Detailed report available in: $ExportCSV"
Write-Host `n" Detailed report available in:" -NoNewline -ForegroundColor Yellow
Write-Host $ExportCSV
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)