国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 學(xué)院 > 開(kāi)發(fā)設(shè)計(jì) > 正文

取得服務(wù)器上用戶組列表腳本之VBS版

2019-11-18 21:13:18
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友
'groups.vbs
'時(shí)間:2001.2.5
'版本:1.0
'作者:滄海笑一聲
'其它:此腳本原作者寫于2000年初,滄海用過(guò)后覺(jué)得不是很好用.
'它原來(lái)的顯示方式是wsh的方法,往往要多屏顯示,而且不能保存結(jié)果
'我將之改成IE顯示的方法,用起來(lái)方便些.:)

On Error Resume Next
'dim wshell
dim ie,doc

set ie = createobject("internetexplorer.application")
ie.navigate "about:blank"
ie.visible = true

set doc = ie.document

CRLF=CHR(13)+CHR(10)
DomainString =inputbox("請(qǐng)輸入一個(gè)域名:")
msgbox "域名是:"&DomainString

write "<Table border=1 cellpadding=4 width=90% bgcolor=ffffcc><TR Align=Center><TD valign=top> <B><Font
Size=5 Color=Blue>"&UCASE(DomainString)&"內(nèi)的所有組的列表</B></Font></td></tr></table>"
doc.title=UCASE(DomainString) & " - 組"

Set DomainObj = GetObject("WinNT://" & DomainString)
tmp= DomainObj.MinPassWordLength    'verify this is a valid domain
if err.number<>0 then
write "<Font Color=Red> There was an error connecting to " & domainname & "</Font>!<br>"
  set ie=Nothing
  wscript.quit
end if

DomainObj.Filter = Array("group")
strInfo="<Table border=0 cellpadding=5><TR><TD><B><Font Size=3>組名</Font></B></TD><TD><B><Font Size=3>描述
</Font></B></TD></TR>"
ie.StatusText="正在收集信息,請(qǐng)稍候......"
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>"
write strInfo & "<br>"

write "<font size=1><I>" & Now & "</I></Font>"

set ie=Nothing
set doc=Nothing
wscript.quit

'******************
sub write(str)
  doc.body.insertAdjacentHTML "beforeend", str
end sub


發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 枣庄市| 丰台区| 锦屏县| 舒兰市| 潜江市| 平原县| 仙居县| 阿拉善盟| 德昌县| 吴川市| 繁昌县| 安远县| 读书| 五华县| 隆尧县| 邵武市| 仁怀市| 庄浪县| 临城县| 邯郸市| 福安市| 桦南县| 郴州市| 昆明市| 上思县| 沙洋县| 新营市| 汉中市| 班戈县| 宁化县| 和硕县| 西平县| 石家庄市| 鲁甸县| 平乡县| 博野县| 陕西省| 三门峡市| 安吉县| 泽州县| 自治县|