title: How to restart service remotely?
body: <p>I can start or stop service remotely from .net project.</p>
  
  <pre><code>ConnectionOptions options = new ConnectionOptions();
  options.Username = @"192.168.36.22\test";
  options.Password = "test";
  ManagementScope scope = new ManagementScope(@"\\192.168.36.22\root\cimv2", options);
  scope.Connect();
  
  
  ManagementOperationObserver Stop = new ManagementOperationObserver();
  Stop.Completed += new CompletedEventHandler(Stop_CallBack);
  try
  {
      string NameServices = "ArcGIS Server";
      WqlObjectQuery query = new WqlObjectQuery("SELECT * FROM Win32_Service  WHERE Name=\"" + NameServices + "\"");
      ManagementObjectSearcher find = new ManagementObjectSearcher(scope, query);
      foreach (ManagementObject spooler in find.Get())
      {
          spooler.InvokeMethod("StopService", new object[] { });
          spooler.InvokeMethod(Start, "StopService", new object[] { });
      }
   }
  ....
  </code></pre>
  
  <p>How can I restart this service?</p>