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

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file