$root = [System.DirectoryServices.DirectoryEntry] "LDAP://OU=Employes,DC=dept,DC=company,DC=com" $search = [ADSISearcher] $root $search.Filter = "(cn=myUserName)" $result = $search.FindOne() $result.properties
$root = [System.DirectoryServices.DirectoryEntry] "LDAP://OU=Employes,DC=dept,DC=company,DC=com" $search = [ADSISearcher] $root $search.Filter = "(cn=myUserName)" $result = $search.FindOne() $result.properties
Frenquently asked questions about everyday real problems in PowerShell
No comments:
Post a Comment