Software >> OS >> Windows >> API >> ADSI >> Perl >>  How to access an object given its Distinguised Name (DN)

use Win32::OLE; $sDN = "OU=Users,DC=somedomain,DC=com"; $oContainer = Win32::OLE->GetObject("LDAP://$sDN");