求助用Microsoft自带的adsutil.vbs 来修改 IIS 设置

野马 2004-01-28 11:22:33
求助用Microsoft自带的adsutil.vbs 来修改 IIS 设置(最好有详细注释)
...全文
164 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
lsaturn 2004-02-02
  • 打赏
  • 举报
回复
帮你up好了
提前与否在于帖子的质量不是等待的时间哦
野马 2004-02-02
  • 打赏
  • 举报
回复
版主能不能帮忙置顶啊,等了好久了
mikespook 2004-02-02
  • 打赏
  • 举报
回复
命令行下执行上面文章中说的
野马 2004-02-01
  • 打赏
  • 举报
回复
这是全部内容,我看不明白怎么用啊
那位大哥能说的详细一些
野马 2004-02-01
  • 打赏
  • 举报
回复
Adsutil.vbs CommandsAdsutil.vbs is an IIS administration utility that uses Microsoft Visual Basic Scripting Edition (VBScript) with Active Directory Service Interfaces (ADSI) to manipulate the IIS configuration. This script should be run using CScript, which is installed with Windows Script Host.

Important You must be a member of the Administrators group on the local computer to run scripts and executables, or you must have been delegated the appropriate authority. As a security best practice, log on to your computer using an account that is not in the Administrators group, and then use the Run as command to run your script or executable as an administrator. From the command prompt, type runas /profile /user:mymachine\administrator cmd to open a command window with administrator rights and then type cscript.exe ScriptName (including the full path with parameters, if any).

Usage
Cscript.exe adsutil.vbs COMMAND <path> [<param>...]

Cscript.exe adsutil.vbs COMMAND [<path> [<parameters>...]]

Commands
GET Path Display chosen parameter.
SET Path Value Assign a new value.
ENUM Path "/P" Enumerate all parameters for the path.
/P - Enumerate the paths only (no data).
ENUM_ALL "/P" Enumerate all parameters.
/P - Enumerate the paths only (no data).
DELETE Path Delete the path or parameter.
CREATE Path [KeyType] Create the path and assign it the KeyType.
APPCREATEINPROC Path Create an in-process application.
APPCREATEOUTPROC Path Create an out-of-process application.
APPDELETE Path Delete the application (if present).
APPUNLOAD Path Unload an out-of-process application.
APPGETSTATUS Path Get status of the application.
FIND Path Find the paths where a parameter is set.
START_SERVER Path Start the Web site.
STOP_SERVER Path Stop the Web site.
PAUSE_SERVER Path Pause the Web site.
CONTINUE_SERVER Path Unpause the Web site.
HELP Print all available commands.

Notes
<Path> is the path of the node for which you are setting the property, combined with the name of the property that you are setting. For example, if you want to set the ServerComment for Web server number 1, the command would be as follows:
adsutil SET w3svc/1/ServerComment "Web Server Number 1"
The next time IIS Manager is opened, it will reflect the name of the Web server as "Web Server Number 1."
The switch "-s:server name" can be used after any command to execute the command on a remote computer. (See first example below.)
Examples
Cscript.exe adsutil.vbs GET W3SVC/1/ServerBindings -s:remotecomputer1
Cscript.exe adsutil.vbs SET W3SVC/1/ServerBindings ":81:"
Cscript.exe adsutil.vbs CREATE W3SVC/1/Root/MyVdir "IIsWebVirtualDir"
Cscript.exe adsutil.vbs START_SERVER W3SVC/1
Cscript.exe adsutil.vbs ENUM /P W3SVC
野马 2004-02-01
  • 打赏
  • 举报
回复
谢谢大哥,我看看
ralphchen 2004-02-01
  • 打赏
  • 举报
回复
上面的文章文不对题,重发。http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/standard/prog_use_adsutil.asp
ralphchen 2004-02-01
  • 打赏
  • 举报
回复
http://soft.shangdu.com/safe/bzkj/gongsi/ReadNews.asp?NewsID=18
wlm_lm 2004-02-01
  • 打赏
  • 举报
回复
高度关注
野马 2004-01-31
  • 打赏
  • 举报
回复
只是知道由此方法,不知道怎么用,望大侠不吝赐教…………
starboy1413 2004-01-29
  • 打赏
  • 举报
回复
关注ing…………
野马 2004-01-28
  • 打赏
  • 举报
回复
只是知道由此方法,不知道怎么用,望大侠不吝赐教…………

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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