How do I view all the group in the domain using ADSI?
A:
Here is some code that uses ADSI to display all the groups in a domain:
strDomain="DOMAINNAME"
Set oDomain = GetObject("WinNT://" & strDomain)
oDomain.Filter = Array( "group")
For Each oGroup In oDomain
If oGroup.Class = "Group" Then
Response.Write(oGroup.Name & "<BR>")
End If
Next
oDomain=Nothing
oGroup=Nothing
Here is a COM tutorial written for Active Server Programmers. This tutorial will increase your understanding of COM fundementals so that you can use other components to expand your Active Server page applicatons.[Read The Tutorial]