Restart IIS on remote machine

后端 未结 6 1832
别那么骄傲
别那么骄傲 2020-12-23 20:43

How can restart IIS on a remote machine?

I know the IP address and administrator user\'s user name and password information.

I am using C#

6条回答
  •  没有蜡笔的小新
    2020-12-23 21:07

    Simplest will be iisreset

    Run command prompt as admin and execute the command.

    Example : If server name is SRVAPP then command will be iisreset SRVAPP

提交回复
热议问题