Chinaunix首页 | 论坛 | 博客
  • 博客访问: 250727
  • 博文数量: 188
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: -30
  • 用 户 组: 普通用户
  • 注册时间: 2017-03-29 11:17
文章分类
文章存档

2013年(8)

2012年(5)

2011年(13)

2010年(26)

2009年(63)

2008年(20)

2007年(32)

2006年(21)

分类: WINDOWS

2011-11-07 12:21:32

最近iis故障频繁,内存溢出问题迟迟找不到原因,无奈给监控弄了个远程启动服务器iis的脚本,总算可以睡个安稳觉了。。。
 
脚本如下:
  1. iisweb /s 192.168.0.30 /u oa /p #EDCvfr /stop "test1"   test1为iis站点名称
  2. 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 /?
阅读(2502) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~