cosmistack-logo

Firewalls4Less is Live!Shop premium hardware at unbeatable prices.

Shop now
Person sitting at computer

Active Directory: How to Find A Distinguished Name

By Jake T on 5/20/25

Description: Need to find a Distinguished Name of an Active Directory object? Read our tutorial on how to do this!

Intro

In Active Directory, a Distinguished Name is a string that uniquely identifies an object while also describing its location in the Active Directory hierarchy. Every object in Active Directory has a distinguished name, whether it's a user, computer, group, or even more advanced items like TPM Devices and or an IP Security policies. They are primarily generated by combining the object's Common Name (CN), Organizational Unit (OU), and Domain Component (DC).

Aside from usage by Active Directory itself, distinguished names are often used for scripting tasks, Lightweight Directory Access Protocol (LDAP) queries, and other Active Directory management tasks.

Steps

1. On your domain controller, open Active Directory Users and Computers

2. To view the distinguished name of an object, you'll first need to make sure the Advanced Features option is selected in the View menu

Screenshot of Active Directory Users and Computers "View" menu

3. Then, locate the object you want to get the distinguished name of, and right-click to select Properties. In our example, we'll be using a User object

Screenshot of Active Directory Users and Computers displaying a context-menu on a User object

4. In the object's Properties dialog, select the Attribute Editor tab

Screenshot of a user's Properties dialog in Active Directory Users and Computers

5. Scroll through the Attributes list until you find "distinguishedName". You can also repeatedly type the "d" key to quickly jump through the list

Screenshot of a user's Properties dialog on the Attribute Editor tab in Active Directory Users and Computers

6. Finally, double-click on the "distinguishedName" property or select it and click View to see it's full contents. From here you can copy and paste the value wherever you may need it!

Screenshot of String Attribute Editor on the Attribute Editor tab of a user's Properties dialog in Active Directory Users and Computers

Note: The Distinguished Name of an object cannot be changed directly as it is a computed property based on the object's other attributes. To change a distinguished name, you would have to change the attributes that make up that distinguished name (e.g. common name, organizational unit, etc.)

Conclusion

That's it! Finding the distinguished name of an object in Active Directory is quick and easy once you know how to get to it! We hope this tutorial was helpful and we encourage you to contact us for all of your IT consulting and Microsoft licensing needs!

Join our Newsletter!

Stay up to date with the latest news from the IT industry and receive exclusive offers from Cosmistack!

By signing up, you agree to our Privacy Policy and to receive emails from Cosmistack. You can unsubscribe at any time.

Disclaimer: The information provided in this article is for educational and informational purposes only. The techniques, tools, and technologies discussed are intended to be used by individuals with a solid understanding of the subject matter. Readers are entirely responsible for any actions they take based on the content of this article. This blog and its authors do not assume any responsibility for any unintended outcomes, data loss, or issues that may arise from following the instructions or recommendations provided.

Copyright © 2024 Cosmistack, Inc. All rights reserved. | Privacy Policy