欢迎光临
我们一直在努力

取得服务器上用户组列表的脚本之asp版.(匿名用户权限即可完成)

建站超值云服务器,限时71元/月

将下文存为任一asp文件如lg.asp即可.
正文从***下开始
**************************************************
<form method="POST">
请输入域名:<input type="text" name="DomainName" size="20">
<input type="submit" value="提交" name="B1">
<input type="reset" value="全部重写" 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&"出错!</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%>内的所有组的列表</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>"
%>

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 取得服务器上用户组列表的脚本之asp版.(匿名用户权限即可完成)
分享到: 更多 (0)

相关推荐

  • 暂无文章