How to restart compute node using c# api?

Unanswered How to restart compute node using c# api?

Все ответы

  • 23 апреля 2012 г. 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.

  • 24 апреля 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