title: How to control network client pc
body: <p>In my  local network ,I have more than <strong>10 pc</strong>.I need to take care all of the pc.I want to know all pc’s hardware informations.I also want to control those pc,Suppose ,at this moment I want to <strong>restart</strong> one of my client pc.<strong>Is it possible in C#</strong>.if have any question plz ask.Thanks in advance
  I use bellow syntax to execute command.</p>
  
  <pre><code>try
  {
      // create the ProcessStartInfo using "cmd" as the program to be run,
      // and "/c " as the parameters.
      // Incidentally, /c tells cmd that we want it to execute the command that follows,
      // and then exit.
      System.Diagnostics.ProcessStartInfo procStartInfo = 
          new System.Diagnostics.ProcessStartInfo("cmd", "/c " + "shutdown /r /m \\172.16.1.3 /t 1 /");
  
      // The following commands are needed to redirect the standard output.
      // This means that it will be redirected to the Process.StandardOutput StreamReader.
      procStartInfo.RedirectStandardOutput = true;
      procStartInfo.UseShellExecute = false;
  
      // Do not create the black window.
      procStartInfo.CreateNoWindow = true;
  
      // Now we create a process, assign its ProcessStartInfo and start it
      System.Diagnostics.Process proc = new System.Diagnostics.Process();
      proc.StartInfo = procStartInfo;
      proc.Start();
  
      // Get the output into a string
      string result = proc.StandardOutput.ReadToEnd();
  
      // Display the command output.
      Console.WriteLine(result);
  }
  catch (Exception objException)
  {
      // Log the exception
  }
  </code></pre>
  
  <p>Using the above code I get the message <strong>"The network path was not found."</strong></p>