Get User's Distinguished Name

Get the DN for a user account from AD.

 
 
 
 
 
4.8 Star
(6)
Add to favorites
Active Directory
7/29/2011
E-mail Twitter del.icio.us 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!   :)