title: How do I start/stop/restart a windows service on a remote machine using .net
body: <p>Currently I am developing desktop application that start/stop/restart windows services. </p>
  
  <pre><code>    public static void StartService(string serviceName, int timeoutMilliseconds)
      {
          ServiceController service = new ServiceController(serviceName);
          try
          {
              TimeSpan timeout = TimeSpan.FromMilliseconds(timeoutMilliseconds);
  
              service.Start();
              service.WaitForStatus(ServiceControllerStatus.Running, timeout);
          }
          catch
          {
              // ...
          }
      }
  </code></pre>
  
  <p>Now I want code to perform same action on remote system(other system on the same network).</p>
  
  <p>Thanks.</p>