最近iis故障频繁,内存溢出问题迟迟找不到原因,无奈给监控弄了个远程启动服务器iis的脚本,总算可以睡个安稳觉了。。。
脚本如下:
- iisweb /s 192.168.0.30 /u oa /p #EDCvfr /stop "test1" test1为iis站点名称
- iisweb /s 192.168.0.30 /u oa /p #EDCvfr /start "test1"
此脚步调用的是iisweb.vbs。
Syntax: IIsWeb [/s
[/u [/p ]]]
/ [arguments]
Parameters:
Value Description
/s
Connect to machine
[Default: this system]
/u Connect as \ or
[Default: current user]
/p Password for the user
/start Starts a site(s) on given
IIS Server.
/stop Stops a site(s) from running
on a given IIS Server.
/pause Pauses a site(s) that is
running on a given IIS Server.
/delete Deletes IIS configuration
from an existing Web Site.
Content will not be deleted.
/create Creates a Web Site.
/query Queries existing Web Sites.
For detailed usage:
IIsWeb /start /?
IIsWeb /stop /?
IIsWeb /pause /?
IIsWeb /delete /?
IIsWeb /create /?
IIsWeb /query /?
阅读(2559) | 评论(0) | 转发(0) |