着急呀!脚本删除IIS中Web虚拟站点,高手请!

hezhanying 2003-11-12 05:11:31
像\Inetpub\AdminScripts目录中的脚本一样,我想删除web虚拟站点,怎么办?
就像目录脚本中启动、设置web站点一样,请高手指点迷津
我也看过了iis中管理站点的脚本,但是我对asp和vbs所知甚少,务必请高手多多指点!
...全文
21 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
hezhanying 2003-11-13
  • 打赏
  • 举报
回复
多谢jaron! 可是我遇到了一个问题,当我删除指定虚拟web站点后,提示“出现了不严重的错误” 命令如下:
cscript adsutil.vbs W3SVC/20/Root
执行后提示 delete path W3SVC/20/Root
20为我的web站点的服务号
Jaron 2003-11-13
  • 打赏
  • 举报
回复
http://www.csdn.net/develop/read_article.asp?id=19634


adsutil.vbs 还可以实现很多功能,大家自已去探索吧,以下是关于 adsutil.vbs 的帮助(英文)
================================================================================
Usage:
ADSUTIL.VBS CMD [param param]

Note: ADSUTIL only supports the "no switch" option of MDUTIL

Description:
IIS K2 administration utility that enables the manipulation with ADSI parameters

Standard MDUTIL Commands:
adsutil.vbs GET path - display chosen parameter
adsutil.vbs SET path value ... - assign the new value
adsutil.vbs ENUM path ["/P" | "/A"] - enumerate all parameters for given path
adsutil.vbs DELETE path - delete given path or parameter
adsutil.vbs CREATE path [KeyType] - create given path and assigns it the given KeyType

adsutil.vbs APPCREATEINPROC w3svc/1/root - Create an in-proc application
adsutil.vbs APPCREATEOUTPROC w3svc/1/root - Create an out-proc application
adsutil.vbs APPCREATEPOOLPROC w3svc/1/root- Create a pooled-proc application
adsutil.vbs APPDELETE w3svc/1/root - Delete the application if there is one
adsutil.vbs APPUNLOAD w3svc/1/root - Unload an application from w3svc runtime lookup table.
adsutil.vbs APPDISABLE w3svc/1/root - Disable an application - appropriate for porting to another machine.
adsutil.vbs APPENABLE w3svc/1/root - Enable an application - appropriate for importing from another machine.
adsutil.vbs APPGETSTATUS w3svc/1/root - Get status of the application

New ADSI Options:
/P - Valid for ENUM only. Enumerates the paths only (no data)
/A - Valid for ENUM only. Enumerates all data that CAN be set on the node
KeyType - Valide for CREATE only. Assigns the valid KeyType to the path

Extended ADSUTIL Commands:
adsutil.vbs FIND path - find the paths where a given parameter is set
adsutil.vbs CREATE_VDIR path - create given path as a Virtual Directory
adsutil.vbs CREATE_VSERV path - create given path as a Virtual Server
adsutil.vbs START_SERVER path - starts the given web site
adsutil.vbs STOP_SERVER path - stops the given web site
adsutil.vbs PAUSE_SERVER path - pauses the given web site
adsutil.vbs CONTINUE_SERVER path - continues the given web site


Samples:
adsutil.vbs GET W3SVC/1/ServerBindings
adsutil.vbs SET W3SVC/1/ServerBindings ":81:"
adsutil.vbs CREATE W3SVC/1/Root/MyVdir "IIsWebVirtualDir"
adsutil.vbs START_SERVER W3SVC/1
adsutil.vbs ENUM /P W3SVC
Extended ADSUTIL Commands:
adsutil.vbs FIND path - find the paths where a given parameter is set
adsutil.vbs CREATE_VDIR path - create given path as a Virtual Directory
adsutil.vbs CREATE_VSERV path - create given path as a Virtual Server
adsutil.vbs START_SERVER path - starts the given web site
adsutil.vbs STOP_SERVER path - stops the given web site
adsutil.vbs PAUSE_SERVER path - pauses the given web site
adsutil.vbs CONTINUE_SERVER path - continues the given web site


Samples:
adsutil.vbs GET W3SVC/1/ServerBindings
adsutil.vbs SET W3SVC/1/ServerBindings ":81:"
adsutil.vbs CREATE W3SVC/1/Root/MyVdir "IIsWebVirtualDir"
adsutil.vbs START_SERVER W3SVC/1
adsutil.vbs ENUM /P W3SVC

quinci 2003-11-12
  • 打赏
  • 举报
回复
关注,我也正想知道

8,327

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 IIS
社区管理员
  • IIS
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧