How to restart compute node using c# api?

Unanswered How to restart compute node using c# api?

  • 2012년 4월 22일 일요일 오후 12:17
     
     

    Hi, 

    I need to Restart Compute node Using c# api.

    Thanks in advanced for the help.

    Ben 

모든 응답

  • 2012년 4월 23일 월요일 오전 2:25
     
      코드 있음

    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.

  • 2012년 4월 24일 화요일 오전 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