The
Saves the following as any ASP file, such as lg.asp.
Text starts with * * *
**************************************************
<form method= "POST"
Please enter the domain name: <input type= "text" name= "DomainName" size= "" "
<input type=" Submit "value=" Name= "B1"
<input type= "reset" value= "all Rewrite" name= "B2"
</ Form>
<%
If IsEmpty (Request ("DomainName")) or trim (Request ("domainname") = "" Then
Response.End
End If
domainstring =request ("domainname")
On Error Resume Next
Set domainobj = GetObject ("winnt://" & domainstring)
tmp= domainobj.minpasswordlength ' Verify this is a valid domain
If err<>0 then
Response.Write <font color= red> connection Domain "&domainstring&" error!</font><br> "
response.end
End If
%>
<table border=1 cellpadding=4 width=90% bgcolor=ffffcc>
<tr align=center>
<TD valign=top ><b><font size=5 color=blue> A list of all groups within <%=DomainString%> domain </b></font>
</td
</tr>
</table>
<table border=0 cellpadding=5><tr><td><b>< Font size=3> Group name </font></b></td><td><b><font size=3> Stroke
State </Font></B></TD></TR>
<%
Domainobj.filter = Array ("group")
For each groupobj in Domainobj
If Groupobj.class = "Group" Then
strinfo=strinfo& "<tr><td><b><font size=3>" &GroupObj.Name& "</Font>< /b></td><td><b><font
Size=3> "&GroupObj.Description&" </Font></B></TD></TR> "
End If
Next
Set domainobj = Nothing
Set groupobj = Nothing
Strinfo=strinfo & "</Table>"
Response.Write Strinfo & "<br>"
Response.Write "<font size=3><i>" & Now & "</I></Font>"
%>
Turn from: Dynamic Network production guide www.knowsky.com