Source Code for http://authors.aspalliance.com/brettb/WindowsNTGroupBrowser.asp


<html>
<!--Begin ASPAlliance Document Header-->

<head>
<title>Browsing Windows NT groups with ASP and ADSI</title>
<link type="text/css" rel="stylesheet" href="ASPKitchen.css" />
<meta name="description" content="Sample code showing how to access Active Directory Service Interfaces (ADSI) from ASP/VBScript">
<meta name="keywords" content="ASP, Active Directory Service Interfaces, ADSI, sample, example, code, access">
</head>
<!--Begin ASPAlliance Document Article-->

<body topmargin="0" leftmargin="0">
<div align="center"><center>

<script language="JavaScript">
function SubmitSearch() {

document.frmSearch.submit();

}

</script>

<table border="0" cellpadding="0" width="100%" cellspacing="0">
<tr>
<td width="30%" bgcolor="#CC0000"><a href="http://authors.aspalliance.com/"><img
src="images/ASPAllianceLogo.gif" width="142" height="57" alt="ASPAlliance" border="0"></a></td>
<td width="40%" bgcolor="#CC0000" align="center"><!-- 468x60 Banner Ad Tag Start -->
<iframe src="http://ads.aspalliance.com/displayad.aspx?t=1&m=1" height="60" width="468" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"><script type="text/javascript" src="http://ads.aspalliance.com/displayad.aspx?t=1&m=1&target=_parent&js=1"></script></iframe>
<!-- 468x60 Banner Ad Tag End --></td>
<td width="30%" bgcolor="#CC0000" align="right" class="HeaderBar"><font size="4">ASP Kitchen</font>  <br><form name="frmSearch" method="POST" action="http://www.brettb.com/ASPAllianceSearch.asp">Search: <input type="text" name="Query"> <a href="javascript:SubmitSearch()">Go</a>  </form>
</td>
</tr>
<tr>
<td colspan="3" bgcolor="#CCCCCC" style="BORDER: #270D30 1px solid;"><div class="menu-top"
id="TopMenu" align="left"><a href="Default.asp" title="Home"><p>Home</a> | <a
href="ClassicASPArticles.asp" title="ASP Articles">ASP Articles</a> | <a
href="ASP.NetArticles.aspx" title="ASP.NET Articles">ASP.NET Articles</a> | <a
href="Tools.asp" title="Tools">Tools</a> | <a
href="TableOfContents.asp" title="Table Of Contents">Table Of Contents</a> | <a href="What'sNew.aspx" title="What's New">What's
New</a></p>
</div></td>
</tr>
</table>
</center></div>

<table border="0" cellpadding="8" width="100%" cellspacing="0">
<tr>
<td valign="top" align="left"><!--start article-->

<p><a href="Default.asp" title="Back to the ASP Kitchen">ASP Kitchen</a>: <a
href="ASPWatchArticles.asp" title="Back to the ASPWatch.com articles">ASPWatch.com
articles</a>: Browsing Windows NT groups with ASP and ADSI</p>

<h1>Browsing Windows NT groups with ASP and ADSI</h1>

<h2>Introduction</h2>

<p>The ASP code described in this article will allow you to find a list of Windows NT
groups in a specific domain or on a specific computer, then view a list of users and
groups within that group.</p>

<h2>How it works</h2>

<p>The ASP code uses Microsoft’s Active Directory Service Interfaces (ADSI). ADSI is
a directory system that makes it straightforward to administer and obtain information from
a variety of data stores on the system (e.g. Exchange Server, Internet Information Server,
and Windows NT itself). ADSI can run on Windows 95, 98, NT 4.0 and Windows 2000. Due to
the lack of security features in Windows 95 and 98 it is advisable to not run ADSI
services on these operating systems. The examples described here have been tested with
Windows NT 4.0.</p>

<p>ADSI is particularly useful under Windows 2000, as it allows access to the Windows 2000
Active Directory. The Active Directory is one of the cornerstones of Windows 2000, so it
is worth getting to grips with. If you want to learn ADSI, there are a number of tutorials
listed at the bottom of this article.</p>

<p>In order to get the examples to work, you will need to install ADSI. The current
version (2.5) is a free download from Microsoft’s website (see links at the bottom of
this article).</p>

<h2>The code</h2>

<p>There are four parts to the example page, which should be saved as
UserGroupBrowser.asp.</p>

<p>The first part of the page should be added to above the opening <HTML> tag:</p>

<p><font color="#808080"><%<br>
Dim sCurrentGroup<br>
Dim sDomainName<br>
sCurrentGroup = Request.QueryString("Group")<br>
sDomainName = Request.QueryString("Domain")<br>
<br>
'Change the following line so that sDomainName is your machine name or domain name<br>
If sDomainName = "" Then sDomainName = "</font><font color="#FF0000">MYDOMAIN</font><font
color="#808080">"<br>
%></font><font color="#FFFF00"><br>
</font></p>

<p>Note that the 8th line of this code should be changed to replace MYDOMAIN with the name
of your Windows NT Domain (or your machine name).</p>

<p>The second piece of code should be placed in the <BODY> part of the ASP document.
It contains calls to the functions that display the groups within a domain and also the
users within a specific group:</p>

<p><font color="#808080"><P>Exploring the Domain <%=sDomainName%></P><br>
<form name="frmGroupSelector" action="UserGroupBrowser.asp"
method="GET"><br>
<input type="hidden" name="Domain"
value="<%=sDomainName%>"><br>
<%=ListGroups(sDomainName, sCurrentGroup, "submitFrm()")%><br>
</form><br>
<br>
<%<br>
If sCurrentGroup <> "" Then<br>
Response.Write ListUsers(sDomainName, sCurrentGroup)<br>
End if<br>
%></font><br>
</p>

<p>The third piece of code is a small piece of JavaScript containing a function to submit
the Group select list if a group has been selected:</p>

<p><font color="#808080"><script language="JavaScript"><!--<br>
function submitFrm() {<br>
<br>
if
(document.frmGroupSelector.Group.options[document.frmGroupSelector.Group.selectedIndex].value
!= '') {<br>
<br>
document.frmGroupSelector.submit();<br>
<br>
}<br>
<br>
}<br>
//--></script></font><br>
</p>

<p>Finally, there are two VBScript functions: ListGroups and ListUsers. The code for these
is shown below:</p>

<p><font color="#808080"><%<br>
</font><font color="#008000">Function to create a select list containing a list of groups
within a computer<br>
'or domain. Function must be supplied with three arguments:<br>
'sDomainName: The domain name or computer name<br>
'sSelectedGroup: The name of the group that should have the selected attribute<br>
'sOnChangeScript: The name of the JavaScript function that should be executed<br>
' when the onChange event is triggered for this select list</font><font color="#808080"><br>
Function ListGroups(sDomainName, sSelectedGroup, sOnChangeScript)<br>
<br>
Dim sSelectListHTML<br>
Dim sGroupName<br>
<br>
sSelectListHTML = "<select name=""Group""
id=""Group"" "<br>
sSelectListHTML = sSelectListHTML & "onChange=""" &
sOnChangeScript & """>" & vbCRLF<br>
sSelectListHTML = sSelectListHTML & "<option
value="""">---------------"<br>
sSelectListHTML = sSelectListHTML & "Select a group"<br>
sSelectListHTML = sSelectListHTML & "---------------</option>" &
vbCRLF<br>
<br>
Set Domain = GetObject("WinNT://" & sDomainName)<br>
<br>
For Each Member in Domain<br>
If Member.Class = "Group" Then<br>
sGroupName = null<br>
sGroupName = Member.Name<br>
<br>
If sGroupName = sSelectedGroup Then<br>
<br>
sSelectListHTML = sSelectListHTML & "<option selected value="""
& sGroupName & """>"<br>
sSelectListHTML = sSelectListHTML & sGroupName & "</option>" &
vbCRLF<br>
<br>
Else<br>
<br>
sSelectListHTML = sSelectListHTML & "<option value="""<br>
sSelectListHTML = sSelectListHTML & sGroupName & """>"
& sGroupName & "</option>" & vbCRLF<br>
<br>
End If<br>
<br>
End if<br>
Next<br>
<br>
sSelectListHTML = sSelectListHTML + "</select>" & vbCRLF<br>
<br>
ListGroups = sSelectListHTML<br>
<br>
End Function<br>
%><br>
</font></p>

<p><font color="#808080"><%<br>
</font><font color="#008000">'Function to list the users and groups within a specific user
group.<br>
'Function must be supplied with two arguments:<br>
'sDomainName: The domain name or computer name<br>
'sGroupName: The name of the user group</font><font color="#808080"><br>
Function ListUsers(sDomainName, sGroupName)<br>
<br>
Dim sUserList<br>
Dim sMyParent<br>
<br>
Set Group = GetObject("WinNT://" & sDomainName & "/" &
sGroupName)<br>
<br>
For Each Member in Group.Members<br>
<br>
On Error Resume Next<br>
<br>
sMyParent = Member.Parent<br>
sMyParent = Right(sMyParent, Len(sMyParent) - InStrRev(sMyParent, "/"))<br>
<br>
If Member.Class = "User" Then<br>
<br>
sUserList = sUserList & "<b>" & Member.Name &
"</b><br>"<br>
sUserList = sUserList & " Full Name: " & Member.FullName &
"<br>"<br>
sUserList = sUserList & " Description: " & Member.Description &
"<br>"<br>
sUserList = sUserList & " Account Disabled: " & Member.AccountDisabled
& "<br>"<br>
sUserList = sUserList & "<p>"<br>
<br>
ElseIf Member.Class = "Group" Then<br>
<br>
sUserList = sUserList & "<b><a
href=""UserGroupBrowser.asp?"<br>
sUserList = sUserList & "Group=" & Server.URLEncode(Member.Name)<br>
sUserList = sUserList & "&Domain=" & Server.URLEncode(sMyParent)<br>
sUserList = sUserList & """>" & Member.Name &
"</a></b>< br>"<br>
sUserList = sUserList & " Description: " & Member.Description &
"<br>"<br>
sUserList = sUserList & "<p>"<br>
<br>
End If<br>
<br>
Next<br>
<br>
If sUserList = "" Then<br>
sUserList = "<p>This group does not contain any users</p>"<br>
End If<br>
<br>
ListUsers = sUserList<br>
<br>
End Function<br>
</font></p>

<p>The first function (ListGroups) will generate the HTML required for a select list
containing a list of all the groups within a specified Windows domain (or an individual
computer). It achieves this by first binding the Domain object to the Active Directory
object for the specified Windows domain or individual machine. It then enumerates the list
of members within the domain, and if the member is found to be a group it adds an OPTION
tag to the select list.</p>

<p>The second function (ListUsers) will display a list of users and groups within a
specific group [under Windows NT it is possible to make groups members of other groups,
such as adding Power Users to the Administrators group].</p>

<p>The ListUsers function will display a number of attributes of users it finds;
specifically their full name, description, and whether or not their account is disabled.
Further attributes can be obtained using ADSI - a full list is shown in Microsoft’s
ADSI documentation (link at the bottom of this article).</p>

<p>Note that <b>On Error Resume Next</b> should be used when using Active Directory,
because the ASP document will stop being processed if a certain attribute cannot be found.</p>

<p>If you don’t want to cut and paste the code into an ASP document, the complete
code may be downloaded in a ZIP file:

<ul>
<li><a
href="http://www.brettb.com/redirector.asp?URL=downloads/usergroupbrowser.zip&FROM=http://www.aspalliance.com/brettb/WindowsNTGroupBrowser.asp"
title="Download the ASP files associated with this article">Group Browser sample files</a>
(1.43 Kb ZIP file).</li>
</ul>

<h2>Further reading</h2>

<ul>
<li>If you want to learn how to use ADSI then the book <a
href="http://www.amazon.com/exec/obidos/ASIN/1861002262/brettbcom"
title="Professional ADSI Programming">Professional ADSI Programming</a> is a good place to
start.</li>
</ul>

<ul>
<li>Once you have mastered the basics, the <a
href="http:/www.amazon.com/exec/obidos/ASIN/186100169X/o/qid=972990435/sr=2-1/aspalliance"
title="ADSI ASP Programmer's Reference">ADSI ASP Programmer's Reference</a> is extremely
useful.</li>
</ul>

<ul>
<li>An <a
href="http://www.microsoft.com/windows2000/techinfo/howitworks/activedirectory/adsilinks.asp"
title="An overview of ADSI">overview</a> of ADSI is available from Microsoft.</li>
</ul>

<ul>
<li>15 Seconds has an <a href="http://www.15seconds.com/focus/ADSI.htm"
title="The ADSI section of 15Seconds.com">ADSI section</a>, although it hasn’t been
updated for a while.</li>
</ul>

<ul>
<li><a HREF="http://www.amazon.com/exec/obidos/ASIN/0672317907/brettbcom"
title="Sams Teach Yourself Web
Development With ASP in 24 Hours"
title="Sams Teach Yourself Web
Development With ASP in 24 Hours">Sams Teach Yourself
Web Development With ASP in 24 Hours</a>. Start learning ASP with this introductory guide.</li>
</ul>








<!--end article-->

<h2>Useful Development Tools</h2>
<div align="left">

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" valign="top"><a
href="http://www.winnershtriangle.com/w/Products.ASPDocumentationTool.asp" target="_blank" title="ASP Documentation Tool™"><strong>ASP
Documentation Tool™</strong></a></td>
</tr>
<tr>
<td width="100%" valign="top">Automatically creates developer documentation for ASP 2.0
and 3.0 web applications written in VBScript and JScript. Documentation for Microsoft
Access, SQL Server 7/2000 databases and Visual Basic 6.0 components associated with the
web application can also be incorporated into the reports. Documentation is created in
HTML, HTML Help and plain text formats.</td>
</tr>
<tr>
<td width="100%" valign="top">
   <a
href="http://www.winnershtriangle.com/w/SampleWeb_Documentation/SampleWeb.chm"><img
src="images/Icon_CHM.gif" width="16" height="16" alt="View Sample Output (HTML Help format)"
border="0" align="absmiddle"></a> <a
href="http://www.winnershtriangle.com/w/SampleWeb_Documentation/SampleWeb.chm" title="View Sample Output (HTML Help format)">View Sample
Output</a> (HTML Help format).<br>
   <a
href="http://www.winnershtriangle.com/w/SampleWeb_Documentation/Default.htm"><img
src="images/Icon_HTML.gif" width="16" height="16" alt="View Sample Output (HTML Format)"
align="absmiddle" border="0"></a> <a
href="http://www.winnershtriangle.com/w/SampleWeb_Documentation/Default.htm"
target="_blank" title="View Sample Output (HTML Format)">View Sample Output</a> (HTML Format).<br>
   <a
href="http://www.brettb.com/redirector.asp?URL=downloads/ASPDocumentationTool_Evaluation_Version.zip"><img
src="images/Icon_Download.gif" width="18" height="20" alt="Download Trial Version"
border="0" align="absmiddle"></a> <a
href="http://www.brettb.com/redirector.asp?URL=downloads/ASPDocumentationTool_Evaluation_Version.zip" title="Download Trial Version">Download
Trial Version</a> (5.2Mb ZIP file).</td>
</tr>
</table>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" valign="top"><a
href="http://www.winnershtriangle.com/w/Products.IndexServerCompanion.asp" target="_blank" title="Index Server Companion"><strong>Index Server Companion</strong></a></td>
</tr>
<tr>
<td width="100%" valign="top">
The Index Server Companion is a Windows application that extends the functionality of Microsoft Index Server so that it is able to index content from remote websites and also from ODBC databases. As such it can be used as a low cost alternative to Site Server 3.0 Search.

</td>
</tr>
<tr>
<td width="100%" valign="top">
   <a
href="http://www.brettb.com/redirector.asp?URL=downloads/IndexServerCompanionDocumentation.zip"><img
src="images/Icon_CHM.gif" width="16" height="16" alt="View Product Documentation"
border="0" align="absmiddle"></a> <a
href="http://www.brettb.com/redirector.asp?URL=downloads/IndexServerCompanionDocumentation.zip" title="View Product Documentation">View Product
Documentation</a> (119K ZIP file).<br>
   <a
href="http://www.winnershtriangle.com/w/Products.IndexServerCompanion.SampleSearch.asp"><img
src="images/Icon_HTML.gif" width="16" height="16" alt="Try Sample Search Facility"
align="absmiddle" border="0"></a> <a
href="http://www.winnershtriangle.com/w/Products.IndexServerCompanion.SampleSearch.asp"
target="_blank" title="View Sample Search Facility">Try Sample Search Facility</a>.<br>
   <a
href="http://www.brettb.com/redirector.asp?URL=downloads/IndexServerCompanion_EvaluationVersion.zip"><img
src="images/Icon_Download.gif" width="18" height="20" alt="Download Trial Version"
border="0" align="absmiddle"></a> <a
href="http://www.brettb.com/redirector.asp?URL=downloads/IndexServerCompanion_EvaluationVersion.zip" title="Download Trial Version">Download
Trial Version</a> (1.7Mb ZIP file).</td>
</tr>
</table>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" valign="top"><a
href="http://www.winnershtriangle.com/w/Products.ASPNETDocumentationTool.asp" target="_blank" title="ASP.NET Documentation Tool"><strong>ASP.NET Documentation Tool</strong></a></td>
</tr>
<tr>
<td width="100%" valign="top">Automatically creates developer documentation for ASP.NET web applications written in C# or VB.NET.
Documentation for SQL Server 7/2000 databases and C#/VB.NET components associated with the
web application can also be incorporated into the reports. Documentation is created in
HTML, HTML Help and plain text formats.</td>
</tr>
<tr>
<td width="100%" valign="top">
   <a href="http://www.winnershtriangle.com/w/ASP.NETDocToolSamples/SampleWeb.NET/SampleWeb.NET.chm"><img
src="images/Icon_CHM.gif" width="16" height="16" alt="View Sample Output (HTML Help format)"
border="0" align="absmiddle"></a> <a
href="http://www.winnershtriangle.com/w/ASP.NETDocToolSamples/SampleWeb.NET/SampleWeb.NET.chm" title="View Sample Output (HTML Help format)">View Sample
Output</a> (HTML Help format).<br>
   <a
href="http://www.winnershtriangle.com/w/ASP.NETDocToolSamples/SampleWeb.NET/Default.htm"><img
src="images/Icon_HTML.gif" width="16" height="16" alt="View Sample Output (HTML Format)"
align="absmiddle" border="0"></a> <a
href="http://www.winnershtriangle.com/w/ASP.NETDocToolSamples/SampleWeb.NET/Default.htm"
target="_blank" title="View Sample Output (HTML Format)">View Sample Output</a> (HTML Format).<br>
   <a
href="http://www.brettb.com/redirector.asp?URL=downloads/ASP.NETDocumentationTool_1.0.zip"><img
src="images/Icon_Download.gif" width="18" height="20" alt="Download Trial Version"
border="0" align="absmiddle"></a> <a
href="http://www.brettb.com/redirector.asp?URL=downloads/ASP.NETDocumentationTool_1.0.zip" title="Download Trial Version">Download
Trial Version</a> (727K ZIP file).</td>
</tr>
</table>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" valign="top"><a
href="http://www.winnershtriangle.com/w/Products.SQLDocumentationTool.asp" target="_blank" title="SQL Documentation Tool"><strong>SQL
Documentation Tool</strong></a></td>
</tr>
<tr>
<td width="100%" valign="top">The SQL Documentation Tool creates technical documentation for Microsoft SQL Server 7.0 and 2000 databases. Technical documentation is created in HTML and HTML Help formats. The HTML Help format documentation is fully searchable and cross referenced. The SQL Documentation Tool documents SQL Server Tables, Views, Stored Procedures, Triggers and Table Relationships.</td>
</tr>
<tr>
<td width="100%" valign="top">
   <a
href="http://www.winnershtriangle.com/w/SQLDocumentationTool/Reports/Test_Project/Test_Project.chm"><img
src="images/Icon_CHM.gif" width="16" height="16" alt="View Sample Output (HTML Help format)"
border="0" align="absmiddle"></a> <a
href="http://www.winnershtriangle.com/w/SQLDocumentationTool/Reports/Test_Project/Test_Project.chm" title="View Sample Output (HTML Help format)">View Sample
Output</a> (HTML Help format).<br>
   <a
href="http://www.winnershtriangle.com/w/SQLDocumentationTool/Reports/Test_Project/Default.htm"><img
src="images/Icon_HTML.gif" width="16" height="16" alt="View Sample Output (HTML Format)"
align="absmiddle" border="0"></a> <a
href="http://www.winnershtriangle.com/w/SQLDocumentationTool/Reports/Test_Project/Default.htm"
target="_blank" title="View Sample Output (HTML Format)">View Sample Output</a> (HTML Format).<br>
   <a
href="http://www.brettb.com/redirector.asp?URL=downloads/SQLDocumentationToolTrial.zip"><img
src="images/Icon_Download.gif" width="18" height="20" alt="Download Trial Version"
border="0" align="absmiddle"></a> <a
href="http://www.brettb.com/redirector.asp?URL=downloads/SQLDocumentationToolTrial.zip" title="Download Trial Version">Download
Trial Version</a> (10.3Mb ZIP file).</td>
</tr>
</table>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" valign="top"><a
href="http://www.winnershtriangle.com/w/Products.TheWebsiteUtility.asp" target="_blank" title="The Website Utility"><strong>The Website Utility</strong></a></td>
</tr>
<tr>
<td width="100%" valign="top">The Website Utility examines websites for errors and
areas that need to be optimised for search engines by using a built in web crawling engine.
Errors checked for include broken or moved hyperlinks, missing page titles and missing meta tags.
It also generates HTML for use in creating website site maps (table of contents pages - like <a href="TableOfContents.asp" title="Example Table of Contents">this one</a>), and is
able to create both client-side <a href="http://www.winnershtriangle.com/w/Products.TheWebsiteUtility.JavaScriptSearchEngine.asp" title="JavaScript Search Engine">JavaScript Search Engines</a> and server-side <a href="http://www.winnershtriangle.com/w/Products.TheWebsiteUtility.ASPSearchEngine.asp" title="JavaScript Search Engine">ASP Search Engines</a> for a website.</td>
</tr>
<tr>
<td width="100%" valign="top">
   <a
href="http://www.winnershtriangle.com/w/TheWebsiteUtility/Reports/ASPAlliance/default.htm"><img
src="images/Icon_HTML.gif" width="16" height="16" alt="View Sample Output (HTML Format)"
align="absmiddle" border="0"></a> <a
href="http://www.winnershtriangle.com/w/TheWebsiteUtility/Reports/ASPAlliance/default.htm"
target="_blank" title="View Sample Output (HTML Format)">View Sample Output</a> (HTML Format).<br>
   <a
href="http://www.brettb.com/redirector.asp?URL=downloads/TheWebsiteUtilityTrial.zip"><img
src="images/Icon_Download.gif" width="18" height="20" alt="Download Trial Version"
border="0" align="absmiddle"></a> <a
href="http://www.brettb.com/redirector.asp?URL=downloads/TheWebsiteUtilityTrial.zip" title="Download Trial Version">Download
Trial Version</a> (3Mb ZIP file).</td>
</tr>
</table>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="100%" valign="top"><a
href="http://www.regnow.com/softsell/nph-softsell.cgi?item=8452-18&affiliate=44172" target="_blank" title="Text Workbench"><strong>Text Workbench</strong></a></td>
</tr>
<tr>
<td width="100%" valign="top">Text Workbench is a file search and replacement utility for text files and Microsoft Office documents. Make rapid file replacements on multiple files and folders full of files. Advanced replacement options include regular expressions support. It even works on remote file systems via FTP. A Regular Expression Laboratory allows advanced pattern matching and replacement expressions to be built and tested. This great utility will make your everyday development tasks much easier!
</td>
</tr>
<tr>
<td width="100%" valign="top">
   <a
href="http://www.regnow.com/trialware/download/Download_TxtWrBSetup.exe?item=8452-18&affiliate=44172"><img
src="images/Icon_Download.gif" width="18" height="20" alt="Download Trial Version of Text Workbench"
border="0" align="absmiddle"></a> <a
href="http://www.regnow.com/trialware/download/Download_TxtWrBSetup.exe?item=8452-18&affiliate=44172" title="Download Trial Version of Text Workbench">Download
Trial Version</a> (3Mb ZIP file; you have the option to either install directly from this link or save the file for later installation).</td>
</tr>
</table>

</div>

<h2>Author details</h2>
<p><p><a href="http://www.brettb.com/" title="View Brett's personal website">Brett Burridge</a>
spent two years working in the <a href="http://www.essex.ac.uk/"
title="University of Essex">University of Essex</a> Computing Service, before moving to <a
href="http://www.intapps.com/" title="The Internet Applications Group">The Internet
Applications Group</a> in the Autumn of 1999, where he developed e-Business applications for a range of
corporate clients and dot-com start ups.</P>
<P>Brett is presently employed as an Internet developer and technical writer
through his own company,
<a href="http://www.winnershtriangle.com/w/Default.asp" title="Winnersh Triangle Web Solutions Limited" target="_blank">Winnersh Triangle Web Solutions Limited</a>.
The company produces a number of
innovative products, including the popular
<a href="http://www.winnershtriangle.com/w/Products.ASPDocumentationTool.asp" target="_blank" title="ASP Documentation Tool™ - creates project documentation for ASP 2.0 and 3.0 websites written in VBScript and JScript, and also SQL Server 2000 databases">ASP Documentation Tool™</a>, the <a href="http://www.winnershtriangle.com/w/Products.IndexServerCompanion.asp" target="_blank" title="Index Server Companion - extends the functionality of Index Server to allow indexing of content from remote websites and ODBC databases">Index Server Companion</a>, the <a href="http://www.winnershtriangle.com/w/Products.ASPNETDocumentationTool.asp" target="_blank" title="ASP.NET Documentation Tool - creates documentation for ASP.NET web applications written in VB.NET and C#">ASP.NET Documentation Tool</a>, the <a href="http://www.winnershtriangle.com/w/Products.SQLServerDocumentationTool.asp" target="_blank" title="SQL Server Documentation Tool - Documents Microsoft SQL Server Databases">SQL Server Documentation Tool</a> and <a href="http://www.winnershtriangle.com/w/Products.TheWebsiteUtility.asp" target="_blank" title="The Website Utility">The Website Utility</a>.
The company is also available for <a href="http://www.winnershtriangle.com/w/Services.Main.asp" target="_blank" title="web application design and development">web application design and development</a> at reasonable rates, primarily using
<a href="http://www.winnershtriangle.com/w/Services.Microsoft.asp" target="_blank" title="Development using Microsoft technologies such as ASP, ASP.NET, Visual Basic, SQL Server">Microsoft technologies</a> (ASP, ASP.NET, Visual Basic, SQL Server) but also using <a href="http://www.winnershtriangle.com/w/Services.OpenSource.asp" target="_blank" title="Open source development using technologies such as PHP, MySQL and Perl">open source</a>
technologies such as PHP, MySQL and Perl. Specialist services include development
of <a href="http://www.winnershtriangle.com/w/Services.IndexServer.asp" target="_blank" title="Development of search solutions using Microsoft's Index Server and Site Server 3.0 Search">search solutions</a> using Microsoft's Index Server and Site Server 3.0 Search.
</P>
<P>
As well as the ASPAlliance, Brett has written articles for <a href="http://www.ariadne.ac.uk/issue33/nt-explorer/" title="Read Brett's most recent article for Ariadne.ac.uk" target="_blank">Ariadne.ac.uk</a>
and <a href="http://www.asptoday.com/content.asp?id=1435" target="_blank" title="Read Brett's first ASPToday article">ASPToday</a>, and has contributed recipes to the <a href="http://www.amazon.com/exec/obidos/ASIN/0672325241/brettbcom" target="_blank" title="ASP.NET Developer's Cookbook">ASP.NET Developer's Cookbook</a>.
   <small><a href="Links.asp" style="color: rgb(252,253,253);">links</a></small>
</P>
<p>
Outside web development, Brett is interested in digital photography (here's my <a href="http://www.brettb.com/gallery.asp" target="_blank" title="My digital photo gallery">photo gallery</a>), <a href="http://www.brettb.com/MyTropicalFishtank.asp" target="_blank" title="My Tropical Fish!">tropical fishkeeping</a>
and collecting contemporary works of art by artists such as <a href="http://www.brettb.com/Doug_Hyde_Gallery.asp" title="My Doug Hyde Limited Edition Sculptures and Prints" target="_blank">Doug Hyde</a>.
</p>

<p>Contact Brett by emailing <script language="JavaScript"><!--

document.write('<a title="Email Brett" href="mailto:' + 'brett' + '@asp' + 'alliance.com">brett' + '@' + 'aspalliance.com</a>');
// --></script></p>


<p align="center">
<a href="http://www.winnershtriangle.com/w/Products.ASPDocumentationTool.asp?FROM=http://authors.aspalliance.com/brettb/WindowsNTGroupBrowser.asp" target="_blank"><IMG SRC="images/ASPDocumentationToolBannerAd.gif" width="468" height="60" alt="Download a free ASP Documentation Tool now!!!" border="0"></a>

</p>

</p>
<h2>Article history</h2>
<p>"Browsing Windows NT groups with ASP and ADSI" originally published on
ASPWatch.com on July 7 2000. Republished on ASPAlliance.com on 27 September 2001.</p>
<p><a href="Default.asp" title="Back to the ASP Kitchen">ASP Kitchen</a>: <a
href="ASPWatchArticles.asp" title="Back to the ASPWatch.com articles">ASPWatch.com
articles</a>: Browsing Windows NT groups with ASP and ADSI</p>


</td>

</td>
<td valign="top" align="center" bgcolor="#CCCCCC" style="BORDER-LEFT: rgb(102,102,102) 1px solid;"> <script type="text/javascript"><!--
google_ad_client = "pub-7044749527879330";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel ="5708954406";
google_color_border = "0000C0";
google_color_bg = "FFFFFF";
google_color_link = "E60000";
google_color_url = "0000FF";
google_color_text = "000000";
google_ad_type = "text_image";
google_alternate_ad_url = "http://authors.aspalliance.com/brettb/NoGoogleAds.asp";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<p align="center">
<a href="http://www.winnershtriangle.com/w/Products.ASPDocumentationTool.asp" target="_blank"><img src="http://authors.aspalliance.com/brettb/images/ASPDocumentationTool_1.gif" alt="Download a Free ASP Documentation Tool Now!"></a>

</p>

<!-- Search Google -->
<center>
<form method="get" action="http://www.google.com/custom" target="google_window">
<table bgcolor="#cccccc">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25gry.gif" border="0" alt="Google" align="middle"></img></a>
<br/>
<input type="text" name="q" size="15" maxlength="255" value=""></input>
</td></tr>
<tr><td valign="top" align="left">
<input type="submit" name="sa" value="Search"></input>
<input type="hidden" name="client" value="pub-7044749527879330"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="4628523158"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
</center>
<!-- Search Google -->


<p align="center">
<a href="http://www.regnow.com/softsell/visitor.cgi?affiliate=44172&action=site&vendor=7522" target="_blank" title="Search Engine Builder - Build a search engine for your website!"><img border="0" src="images/SearchEngineBuilder.gif" alt="Search Engine Builder - Build a search engine for your website!"></a>
</p>
</td>
</tr>
<tr><td bgcolor="#CC0000" colspan="2" style="BORDER-TOP: rgb(102,102,102) 1px solid;"><small><font color="white">© page content copyright Brett Burridge 1998 - 2004.</font></small></td></tr>
</table>
<!--End ASPAlliance Document Article-->
</body>
</html>