命令 | 描述 |
---|---|
GET Path |
顯示選擇的參數。 |
SET Path Value |
指定新值。 |
ENUM Path "/P" |
枚舉該路徑的所有參數。/P 僅枚舉路徑(無數據)。 |
ENUM_ALL "/P" |
枚舉所有參數。/P 僅枚舉路徑(無數據)。 |
DELETE Path |
刪除路徑或參數。 |
CREATE Path [KeyType] |
創建路徑并為其分配 KeyType。 |
APPCREATEINPROC Path |
創建進程內應用程序。 |
APPCREATEOUTPROC Path |
創建進程外應用程序。 |
APPDELETE Path |
刪除應用程序(如果存在)。 |
APPUNLOAD Path |
卸載進程外應用程序。 |
APPGETSTATUS Path |
獲取應用程序狀態。 |
FIND Path |
查找設置了參數的路徑。 |
START_SERVER Path |
啟動網站。 |
STOP_SERVER Path |
停止網站。 |
PAUSE_SERVER Path |
暫停網站。 |
CONTINUE_SERVER Path |
網站取消暫停。 |
HELP |
打印所有可用命令。 |
注意
•Path> 是指要設置其屬性(包括要設置的屬性名稱)的節點路徑。例如,要將 ServerComment 設置為“Web Server Number 1”,則命令如下:
adsutil SET w3svc/1/ServerComment "Web Server Number 1"
下一次打開 IIS 管理器時,Web 服務器的名稱將變為“Web Server Number 1”。
•為了在遠程計算機上執行開關“-s:server name”,可以在任何命令后面使用該命令。(參見下面第一個示例。)
示例
•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