April 7, 2010

How to search for an object in Active Directory ?

$search = [ADSISearcher] ""
$search.Filter = "(cn=myUserName)"
$result = $search.FindOne()
$result.properties

No comments:

Post a Comment