while VBscript supports LDAP querying and objects right out of the box, Powershell needs to ADSI Type Adapter (type cast, basically). the following are examples of how to connect to LDAP using both methods.
- VB - SET objContainer = GetObject(ldap://cn=username,ou=abc,dc=xyz,dc=com/)
- PS - $objContainer = [ADSI]ldap://cn=username,ou=abc,dc=xyz,dc=com/
the rest is usual.
No comments:
Post a Comment