Restart a Service Remotely through PowerShell

The PowerShell command below will restart a service remotely on another computer\server.


Restart-Service -InputObject $(Get-service -ComputerName ExMbx1 -name msexchangetransport)