PC6下载站

分类分类

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

关注+2004-10-07作者:蓝点


            
             
              
             
            

               
               

            



            将下文存为任一asp文件如lg.asp即可.
正文从***下开始
**************************************************

请输入域名:



<%
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 "连接域"&domainstring&"出错!
"
response.end
end if
%>




域<%=DomainString%>内的所有组的列表


<%
DomainObj.Filter = Array("group")
For Each GroupObj In DomainObj
If GroupObj.Class = "Group" Then
strInfo=strInfo&""
End If
Next
set DomainObj = Nothing
set GroupObj = Nothing
strInfo=strInfo & "
组名

"&GroupObj.Name&"
Size=3>"&GroupObj.Description&"
"
response.write strInfo & "
"
response.write "" & Now & ""
%>
展开全部

相关文章

更多+相同厂商

热门推荐

  • 最新排行
  • 最热排行
  • 评分最高
排行榜

    点击查看更多

      点击查看更多

        点击查看更多

        说两句网友评论

          我要评论...
          取消