将下文存为任一
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&"| "&GroupObj.Name&" | Size=3>"&GroupObj.Description&" |
"
End If
Next
set DomainObj = Nothing
set GroupObj = Nothing
strInfo=strInfo & "
"
response.write strInfo & "
"
response.write "
" & Now & ""
%>