Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Report for last time user accessed their email account and sorted by department

$
0
0

I've been tasked with creating a report listing users, department,  last date/time they accessed their email account sorted by department.

The example I have provides a lot of information but not the department field, which is located on the EMC Organization tab.

Get-MailboxStatistics -Server EmailSrv01 | Sort LastLogonTime -Descending | Export-Csv "D:\rpts\LastEmailCheck_$(Get-Date -f 'yyyyMMdd').csv" -NoType

 

Can someone assist me or perhaps share a script you have which provides this information?

 

 


Viewing all articles
Browse latest Browse all 10624

Trending Articles