Find DN of an object in AD

You can find out the DN of an object (computer, contact, group, ou,user) using the following line in cmd or PowerShell on the AD server:

dsquery [object] -name "Name"

Where object can be computer, contact, group, ou, user.

Hint: Use quotation marks if your group name has spaces.

Leave a Reply

Your email address will not be published. Required fields are marked *