如何取得服务器上的用户组列表?

2023-12-05 0 752

domainname.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.endend ifDomainString =request(\”domainname\”)on error resume nextSet DomainObj = GetObject(\”WinNT://\” & DomainString)tmp= DomainObj.MinPasswordLength

\’ 校验有效域.if err<>0 then response.write \”<Font Color=Red>,连接域\”&domainstring&\”出错!</Font><br>\” response.endend 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\” ThenstrInfo=strInfo&\”<tr><td><B><Font Size=3>\”&GroupObj.Name&\”</Font>

</B></td><td><B><Font Size=3>\”&GroupObj.Description&\”</Font>

</B></td></tr>\” End IfNextset DomainObj = Nothingset GroupObj = NothingstrInfo=strInfo & \”</Table>\”response.write strInfo & \”<br>\”response.write \”<font size=3><I>\” & Now & \”</I></Font>\”%>

[1]

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

悠久资源 编程10000问 如何取得服务器上的用户组列表? https://www.u-9.cn/biancheng/bc10000/96543.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务