How To start/stop IIS 6.0/7.0 remotely using PowerShell Scripts?

后端 未结 6 2616
一向
一向 2021-02-20 04:42

I have two servers Server A and Server B. I want to stop server A from Server B remotely using Powershell script.

6条回答
  •  伪装坚强ぢ
    2021-02-20 05:09

    In powershell 2.0, run the following from cmd prompt:

    invoke-command -computername  -scriptblock {iisreset}
    

提交回复
热议问题