时间: 2021-07-31 作者:daque
前几天在tips里加上一篇旧作品,是相关《windows2000iis 处置适用步调adsutil.vbs运用本领》本人从新使了使,厥后想想在adminscripts文献下,再有很多的vbs东西呢,不如也接洽接洽余下的19个东西吧。闲着也闲着,呵呵,这不好忘性不如烂键盘,仍旧记下的好! 摆设目次的存取权力c:\inetpub\adminscripts>chaccess.vbs -a w3svc/1/root -verboseusage: chaccess <--adspath|-a adspath> 遏制摆设路途 [--computer|-c computer1[,computer2...]]指定呆板名,ip也可。 [+read|-read] 主目次下的读取权力 [+write|-write]主目次下的写入权力 [+script|-script]主目次下的实行承诺权力为纯剧本 [+execute|-execute]主目次下的实行承诺权力为剧本和可执路途序 [+browse|-browse]主目次下的目次欣赏权力 [--verbose|-v]暂时本子 [--help|-?]表露指定路途的属性及状况消息c:\inetpub\adminscripts>dispnode helpusage: dispnode <--adspath|-a ads path of node> [--help|-h] ads path - the path of the node to be displayedexample 1: dispnode -a iis://localhost/w3svc表露暂时iis的主属性example 2: dispnode --adspath iis://machinename/w3svc/1 表露暂时站点的状况消息探求定名的web,并表露节点号、刻画、长机名、端口和ip地方c:\inetpub\adminscripts>findweb web site number = 1 web site description = 默许 web 站点 hostname = port = 80 ip address =c:\inetpub\adminscripts>findweb m7.net web site number = 2 web site description = m7.net hostname = www.m7.net port = 80 ip address = www.m7.net表露指定站点路途处置树c:\inetpub\adminscripts>disptree.vbs helpusage: disptree [--adspath|-a root node] 指定要表露处置树的路途 [--norecurse|-n] [--help|-?]创造web假造站点c:\inetpub\adminscripts>mkw3site helpunknown argument helpusage: mkw3site <--rootdirectory|-r root directory>网站路途名 <--comment|-t server comment>web网站标识 [--computer|-c computer1[,computer2...]] [--port|-o port num]端口 [--ipaddress|-i ip address]ip地方 [--hostname|-h host name]长机名 [--sitenumber|-n sitenumber] [--dontstart]不启用 [--verbose|-v] [--help|-?]创造指定站点的假造目次c:\inetpub\adminscripts>mkwebdir.vbs helpusage: mkwebdir [--computer|-c computer1,computer2]指定效劳器名 <--website|-w website1>指定假造站点卯 <--virtualdir|-v name1,path1,name2,path2,...>指定假造目次名和目次文献地方 [--help|-?]example : mkwebdir -c mycomputer -w "default web site" -v "dir1","c:\inetpub\wwwroot\dir1","dir2","c:\inetpub\wwwroot\dir2"休憩指定站点的iis效劳c:\inetpub\adminscripts>pausesrv helpusage: pausesrv <--adspath|-a server1[,server2,server3...]> [--computer|-c computer1[,computer2...]] [--verbose|-v] [--help|-?]example 1: pausesrv -a w3svc/1,msftpsvc/2example 2: pauseftp -c machine1,machine2,machine3 -a w3svc/1,msftpsvc/2回复休憩的站点的iis效劳c:\inetpub\adminscripts>contsrv.vbs helpusage: contsrv <--adspath|-a server1[,server2,server3...]> [--computer|-c computer1[,computer2...]] [--verbose|-v] [--help|-?]example 1: contsrv -a w3svc/1,msftpsvc/2example 2: contsrv -c machine1,machine2,machine3 -a w3svc/1,msftpsvc/2用法同上pauseftp.vbs 休憩ftp效劳器效劳contftp.vbs 回复被休憩的ftp效劳pauseweb.vbs 休憩web效劳器效劳contweb.vbs 回复休憩的www效劳遏止指定站点的iis效劳器效劳c:\inetpub\adminscripts>stopsrv.vbs -a w3svc/2启用指定站点的iis效劳器效劳c:\inetpub\adminscripts>startsrv.vbs -a w3svc/2遏止指定站点的web效劳器效劳c:\inetpub\adminscripts>startweb.vbs -a w3svc/2启用指定站点的web效劳器效劳c:\inetpub\adminscripts>stopweb.vbs -a 2用法同上stopftp.vbs 遏止ftp效劳器效劳startftp.vbs 启用ftp效劳器效劳盯梢剧本的实行c:\inetpub\adminscripts>synciwam.vbs -husage: cscript synciwam.vbs [-v|-h] -v verbose: trace execution of the script -h help: print this messagemiyagi