If Len (Trim (suser)) > 0 Then
Set Objgroup = GetObject ("winnt://" & Sdomain & "/" & Scomputer & "/" & Suser)
For each objuser in objgroup.groups
Response.Write Objuser.name & "<br>" & VbCrLf
Next
Response.Write "</table><p><a href=adsi.asp?" Domain= "& Sdomain &" &computer= "& Scomputer &" >back to "& Scomputer &" </a></p > "
ElseIf len (Trim (sgroup)) > 0 Then
Set Objgroup = GetObject ("winnt://" & Sdomain & "/" & Scomputer & "/" & Sgroup)
For each objuser in Objgroup.members
Response.Write Objuser.name & "<br>" & VbCrLf
Next
Response.Write "</table><p><a href=adsi.asp?" Domain= "& Sdomain &" &computer= "& Scomputer &" >back to "& Scomputer &" </a></p > "
ElseIf len (Trim (scomputer)) > 0 Then
Set objcomputer = GetObject ("winnt://" & Sdomain & "/" & Scomputer)
Response.Write "<table border=0>"
For each objobject in objcomputer
If StrComp (Objobject.class, "group", 1) = 0 Then
Response.Write "<tr><td>" & Objobject.class & "</td><td> <a href=adsi.asp? Domain= "& Sdomain &" &computer= "& Scomputer &" &group= "& Objobject.name &" > "& Objobject.name & "</a></td></tr>" & VbCrLf
ElseIf StrComp (objobject.class, "user", 1) = 0 Then
Response.Write "<tr><td>" & Objobject.class & "</td><td> <a href=adsi.asp? Domain= "& Sdomain &" &computer= "& Scomputer &" &user= "& Objobject.name &" > "& O Bjobject.name & "</a></td></tr>" & VbCrLf
Else
Response.Write "<tr><td>" & Objobject.class & "</td><td>" & Objobject.name & "& Lt;/td></tr> "& VbCrLf
End If
Next
Response.Write "</table><p><a href=adsi.asp?" Domain= "& Sdomain &" >back to "& Sdomain &" </a></p> "
ElseIf len (Trim (sdomain)) > 0 Then
Set objdomain = GetObject ("winnt://" & Sdomain)
For each objcomputer in Objdomain
If StrComp (Objcomputer.class, "Computer", 1) = 0 Then
Response.Write "<a href=adsi.asp?domain=" & Sdomain & "&computer=" & Objcomputer.name & ">" &am P Objcomputer.name & "<br>"
End If
Next
Response.Write "<p><a href=adsi.asp>back to Domain list</a></p>"
Else
Set objwinnt = GetObject ("WinNT:")
For each objdomain in Objwinnt
If StrComp (objdomain.class, "domain", 1) = 0 Then
Response.Write "<a href=adsi.asp?domain=" & Objdomain.name & ">" & objdomain.name & "<br>"
End If
Next
End If
%>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service