I have two servers Server A and Server B. I want to stop server A from Server B remotely using Powershell script.
In powershell 2.0, run the following from cmd prompt:
invoke-command -computername -scriptblock {iisreset}