您现在的位置是:网站首页> 编程资料编程资料

如何取得服务器上的用户组列表?_编程10000问_

2023-05-25 210人已围观

简介 如何取得服务器上的用户组列表?_编程10000问_

domainname.asp


    请输入域名:
    提交
" name="B1">
    重写
" name="B2">

<%
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   

' 校验有效域.
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&"

"&GroupObj.Description&"

"
response.write strInfo & "
"
response.write "" & Now & ""
%>

[1]

-六神源码网