get list of mailboxex with CN

Posted on 2012-08-22
Last Modified: 2012-08-22

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?
Question by:Bes4dmin
    1 Comment
    LVL 1

    Accepted Solution

    never mind, I found it
    Just typed
    Get-Mailbox | ft distinguishedname

    Featured Post

    Do email signature updates give you a headache?

    Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

    Join & Write a Comment

    Create and license users in Office 365 in bulk based on a CSV file. A step-by-step guide with PowerShell script examples.
    In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now