Link to home
Start Free TrialLog in
Avatar of llarava
llaravaFlag for Afghanistan

asked on

Assistance to get active AD users and mailboxes

Hello can someone please help me to get a report of the active users and their mailboxes. I am looking for something like this

Name lastname username mailbox

I am using powershell and exchange cmdlets

Thanks
ASKER CERTIFIED SOLUTION
Avatar of timgreen7077
timgreen7077

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Get-Mailbox -ResultSize unlimited | Format-Table DisplayName, LastName, FirstName, PrimarySmtpAddress
Avatar of llarava

ASKER

I need mailbox for active AD users. We do not delete AD accounts when users leave the company they get disabled and mailboxes archived. Would the above be accurate or include enable and disable?
Avatar of timgreen7077
timgreen7077

This will give you active AD users with associated mailboxes.