Get User's Distinguished Name

Get the DN for a user account from AD.

4.8 Star
Add to favorites
Active Directory
E-mail Twitter Digg Facebook
Sign in to ask a question

  • AD Module
    2 Posts | Last post January 13, 2013
    • Why wouldn't you just use the AD module provided by Microsoft?  It's literally cooked into the mix.  You could just issue the following commands:
      add-module ActiveDirectory
      $userid = "blahblahblah"
      Get-ADUser $($userid).DistinguishedName
    • Thanks for the tip Krutaw!   :)