一聚教程网:一个值得你收藏的教程网站

热门教程

ADSI Domain browser(试一试很出酷)

时间:2022-06-30 11:03:34 编辑:袖梨 来源:一聚教程网

<%@ Language=VBScript %>
>


ADSI Domain browser



<%
sDomain = Request("Domain")
sComputer = Request("Computer")
sGroup = Request("Group")
sUser = Request("User")
if len(trim(sUser)) > 0 then
    Set objGroup = GetObject("WinNT://" & sDomain & "/" & sComputer & "/" & sUser)
    For Each objUser In objGroup.Groups
        Response.Write objUser.Name & "
" & vbCrLf
    Next
    Response.Write "

Back to " & sComputer & "

"
elseif len(trim(sGroup)) > 0 then
    Set objGroup = GetObject("WinNT://" & sDomain & "/" & sComputer & "/" & sGroup)
    For Each objUser In objGroup.Members
        Response.Write objUser.Name & "
" & vbCrLf
    Next
    Response.Write "

Back to " & sComputer & "

"
elseif len(trim(sComputer)) > 0 then
    Set objComputer = GetObject("WinNT://" & sDomain & "/" & sComputer)
    Response.Write ""
    For Each objObject In objComputer