How to restart compute node using c# api?

Unanswered How to restart compute node using c# api?

  • Sonntag, 22. April 2012 12:17
     
     

    Hi, 

    I need to Restart Compute node Using c# api.

    Thanks in advanced for the help.

    Ben 

Alle Antworten

  • Montag, 23. April 2012 02:25
     
      Enthält Code

    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.

  • Dienstag, 24. April 2012 10:01
     
     

    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