What\'s the easiest programmatic way to restart a service on a remote Windows system? Language or method doesn\'t matter as long as it doesn\'t require human interaction.
As of Powershell v3, PSsessions allow for any native cmdlet to be run on a remote machine
$session = New-PSsession -Computername "YourServerName" Invoke-Command -Session $Session -ScriptBlock {Restart-Service "YourServiceName"} Remove-PSSession $Session
See here for more information