如何取得服務器上的用戶組列表?
來源:易賢網 閱讀:815 次 日期:2014-08-10 17:22:56
溫馨提示:易賢網小編為您整理了“如何取得服務器上的用戶組列表?”,方便廣大網友查閱!

domainname.asp

<form method="POST">

請輸入域名:<input type="text" name="DomainName" size="20">

<input type="submit" value="提交" name="B1">

<input type="reset" value="重寫" name="B2">

</form>

<%

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 "<Font Color=Red>噢,連接域"&domainstring&"出錯!</Font><br>"

response.end

end if

%>

<Table border=1 cellpadding=4 width=90% bgcolor=ffffcc>

<tr Align=Center>

<td valign=top><B><Font Size=5 Color=Blue>域<%=DomainString%>內的所有組的列表</B></Font>

</td>

</tr>

</table>

<Table border=0 cellpadding=5><tr><td><B><Font Size=3>組名</Font></B></td><td><B><Font Size=3>描述</Font></B></td></tr>

<%

DomainObj.Filter = Array("group")

For Each GroupObj In DomainObj

If GroupObj.Class = "Group" Then

strInfo=strInfo&"<tr><td><B><Font Size=3>"&GroupObj.Name&"</Font>

</B></td><td><B><Font Size=3>"&GroupObj.Description&"</Font>

</B></td></tr>"

End If

Next

set DomainObj = Nothing

set GroupObj = Nothing

strInfo=strInfo & "</Table>"

response.write strInfo & "<br>"

response.write "<font size=3><I>" & Now & "</I></Font>"

%>

更多信息請查看IT技術專欄

更多信息請查看網絡編程
易賢網手機網站地址:如何取得服務器上的用戶組列表?

2026國考·省考課程試聽報名

  • 報班類型
  • 姓名
  • 手機號
  • 驗證碼
關于我們 | 聯(lián)系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網