您现在的位置是:网站首页> 编程资料编程资料
如何取得服务器上的用户组列表?_编程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&" ""&GroupObj.Name&" "&GroupObj.Description&"
End If
Next
set DomainObj = Nothing
set GroupObj = Nothing
strInfo=strInfo & "
response.write strInfo & "
"
response.write "" & Now & ""
%>
[1]
