Loading |
VBScript |
JavaScript |
Powershell |
Search Options: List the Groups an ADAM User Belongs toContent of List the Groups an ADAM User Belongs to.vbsMD5 Hash: 066A33523A55444B77C2C0654901FA46 |
||
' Description: Lists all the groups that the ADAM user Kenmyer is a member of.
On Error Resume Next Set objUser = GetObject _ ("LDAP://localhost:389/cn=kenmyer,ou=Accounting,dc=fabrikam,dc=com") arrMembersOf = objUser.GetEx("memberOf") For Each strMemberOf in arrMembersOf WScript.Echo strMemberOf Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |