Restart IIS on remote machine

后端 未结 6 1795
别那么骄傲
别那么骄傲 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:19

    How remote is remote? You could just execute Shutdown.exe from your c# code? If that's not possible (firewalls etc) then the next best would probably be putting a service on there that you could call remotely (and securely!) that shuts the machine down.

提交回复
热议问题