iisweb 远程重启IIS服务器站点的命令学习

发布时间:2020-05-12编辑:脚本学堂
用iisweb实现远程重启iis服务器站点,方便实用,有需要的朋友,可以参考下。

自动远程重启iias服务器站点的脚本
 

复制代码 代码示例:
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 <server> [/u <username> [/p <password>]]]
        /<operation> [arguments]
Parameters:
Value                   Description
/s <server>             Connect to machine <server>
                        [Default: this system]
/u <username>           Connect as <domain><username> or
                        <username> [Default: current user]
/p <password>           Password for the <username> user
<operation>             /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 /?