• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 10034
  • Last Modified:

How to find my root dn

How do I find out what my root DN (Distinguished name) is on my domain?
Thomas N
Thomas N
  • 2
1 Solution
Thomas NSystems Analyst - Windows System AdministratorAuthor Commented:
Also how do I find out which port ldap is using?
mebaby333It AdminCommented:
Start Notepad and copy the following commands into the application:

    Set objSysInfo = CreateObject("ADSystemInfo")
    Wscript.Echo "Forest DNS Name: " & objSysInfo.ForestDNSName

Save the file as forestroot1.vbs.
Exit Notepad, then double-click forestroot1.vbs in Windows Explorer.
Windows will display the DNS name of the forest root.

found here : http://windowsitpro.com/windows-server/how-can-i-determine-which-domain-forest-root-domain
mebaby333It AdminCommented:
Shahnawaz AhmedTechnical Services SpecialistCommented:
Open ADSIEdit.msc -> Go to your server path in Domain Partition -> Go to Properties of server -> Find an attribute Distinguished Name (DN) -> Double Click to open it -> Copy and click cancel in all windows.

You May Use Command dsquery , Example here


Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now