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
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?