ADSISearcher constructor
how can build new searcher providing search root , filter? tried this, no luck..
$searcher = [adsisearcher] $objroot "(objectcategory=computer)"
tried , , () , wasn’t able construct object more 1 param.
also, basic ad question, why need load properties? i've been able access via $obj.properties.name or whatever. there performance reason or ps doing magic in end me out?
thanks
justin
new-object adsisearcher([adsi]"ldap://ou=test,dc=contoso,dc=com","(objectcategory=computer)")
Windows Server > Windows PowerShell
Comments
Post a Comment