分类:
2011-07-01 13:52:42
adsutil.vbs
HELP
cscript.exe
adsutil.vbs
cscript adsutil.vbs ENUM
w3svc/1/root
//在默认站点下创建虚拟目录并指定工作文件夹和默认页面
C:\Inetpub\AdminScripts>adsutil.vbs
create_vdir
w3svc/1/root/789
created "w3svc/1/root/789"
C:\Inetpub\AdminScripts>adsutil.vbs
set w3svc/1/root/789/path
e:\html
path
C:\Inetpub\AdminScripts>adsutil.vbs
set w3svc/1/root/789/defaultdoc login.asp
defaultdoc
//创建一个全新的web站点,指定端口,指定工作目录
C:\Documents and
Settings\Administrator>cd
C:\Inetpub\AdminScripts
C:\Inetpub\AdminScripts>adsutil.vbs
enum /p
w3svc
[/w3svc/Info]
[/w3svc/1]
[/w3svc/Filters]
[/w3svc/2]
[/w3svc/3]
[/w3svc/4]
[/w3svc/5]
[/w3svc/6]
[/w3svc/7]
[/w3svc/8]
[/w3svc/9]
[/w3svc/99]
C:\Inetpub\AdminScripts>adsutil.vbs
delete
deleted path "w3svc/99"
C:\Inetpub\AdminScripts>adsutil.vbs
create_vserv
created "w3svc/99"
C:\Inetpub\AdminScripts>adsutil.vbs
set
serversize
C:\Inetpub\AdminScripts>adsutil.vbs
set
servercomment
C:\Inetpub\AdminScripts>adsutil.vbs
set
serverbindings
C:\Inetpub\AdminScripts>adsutil.vbs
set
enabledefaultdoc
C:\Inetpub\AdminScripts>adsutil.vbs
create_vdir w3svc/99/root
created "w3svc/99/root"
C:\Inetpub\AdminScripts>adsutil.vbs
set w3svc/99/root/path e:\html
path
C:\Inetpub\AdminScripts>adsutil.vbs set w3svc/99/root/accessread true //设置99站点root可读
accessread
C:\Inetpub\AdminScripts>adsutil.vbs set w3svc/99/root/accesswrite true //设置99站点root可写
accesswrite
C:\Inetpub\AdminScripts>adsutil.vbs
set w3svc/99/root/enabledirbrowsing true
enabledirbrowsing
C:\Inetpub\AdminScripts>adsutil.vbs set w3svc/99/root/enabledefaultdoc true //设置99站点root默认文档
enabledefaultdoc
C:\Inetpub\AdminScripts>adsutil.vbs
set w3svc/99/root/accessscript true
accessscript
C:\Inetpub\AdminScripts>adsutil.vbs
set w3svc/99/root/appfriendlyName 默认应用程序
appfriendlyName
C:\Inetpub\AdminScripts>adsutil.vbs
start_server w3svc/99
Server w3svc/99 Successfully STARTED