get list of mailboxex with CN


I'm trying to get a list of users with the corresponding distinguishedname field on it.

In EMC when I execute the command
Get-MailboxDatabase DBNAME | Get-MailboxStatistics | ft displayname, distinguishedname

Open in new window

I get a list with all users in that database but the distinguishedname field is empty

What is the correct command to list all users by distinguishedname?
Who is Participating?
Bes4dminAuthor Commented:
never mind, I found it
Just typed
Get-Mailbox | ft distinguishedname
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.