Retrieve ACL Group names

  • Thread starter Thread starter Steph
  • Start date Start date
S

Steph

I am wanting to populate a drop down list with all of the ACL groups in
AD. Can anyone point me in the right direction.

TIA
Stephen
 
I just located this bit of VBScript that seems to do what I (and it appears
you also) want to do:

Sub ListGroups( strDomain )
Set objComputer = GetObject("WinNT://" & strDomain )
objComputer.Filter = Array( "Group" )
For Each objGroup In objComputer
WScript.Echo "Name: " & objGroup.Name
Next
End Sub

Dim strDomain
Do
strDomain = inputbox( "Please enter a domainname", "Input" )
Loop until strDomain <> ""

ListGroups( strDomain )

Should be simple enough to convert to VB.NET.. I am going to give it a try
latter.. too tired now :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top