明輝手游網(wǎng)中心:是一個(gè)免費(fèi)提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺(tái)!

取得服務(wù)器上用戶組下文的腳本之a(chǎn)sp版

[摘要]將下文存為任一asp文件如lg.asp即可.正文從***下開(kāi)始**************************************************<form method=&q...
將下文存為任一asp文件如lg.asp即可.
正文從***下開(kāi)始
**************************************************
<form method="POST">
    請(qǐng)輸入域名:<input type="text" name="DomainName" size="20">
    <input type="submit" value="提交" name="B1">
    <input type="reset" value="全部重寫(xiě)" 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>連接域"&domainstring&"出錯(cuò)!</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>域<%=DomainString%>內(nèi)的所有組的列表</B></Font>
</td>
</tr>
</table>
<Table border=0 cellpadding=5><TR><TD><B><Font Size=3>組名</Font></B></TD><TD><B><Font Size=3>描

述</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>"
%>