none
How to restart compute node using c# api? RRS feed

  • Question

  • Hi, 

    I need to Restart Compute node Using c# api.

    Thanks in advanced for the help.

    Ben 

    Sunday, April 22, 2012 12:17 PM

All replies

  • Hello.

    System.Diagnostics.Process.Start("shutdown.exe", "-r -t 0");

    But i would use not C# but WMI or WinRM - this task is more "native" for them.

    Monday, April 23, 2012 2:25 AM
  • Hi,

    I need to periodically restart the compute node automatically .

    Can I use ,"System.Diagnostics.Process.Start("shutdown.exe", "-r -t 0")", for that purpose ?

    Thanks,

    Ben

    Tuesday, April 24, 2012 10:01 AM