20 February,2012 by Tom Collins
Working with Powershell and Active Directory simplifies some complex tasks for the DBA.
Active Directory is LDAP compliant. This means the RFC 1779 and RFC 2247 standards are met.
This example lists all employees on an LDAP path. This method requires knowledge of the LDAP path .
Common Name (cn)
Organizational Unit (ou)
Domain Component (dc)
$group = [ADSI] "LDAP://cn=MYORGAllEmployees,ou=MYORG,dc=south,dc=syborg,dc=net" foreach ($member in $group.member) { $member }
Powershell sql server security audit
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |