For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic Syntax > March 2005 > how to get a list of active directory folder and it's user/group?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to get a list of active directory folder and it's user/group?
lins

2005-03-21, 9:00 pm





something like this but for the folders and who have permission to
access them.
any idea? thank you

Option Explicit
Dim objDomain, objUser, objGroup, objFolder

Set objDomain = GetObject("WinNT://mydomain")
objDomain.Filter = Array("user")

For Each objUser In objDomain

Wscript.Echo objUser.Name

Next

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com