Search code examples
javarmirestart

Reboot remote computer using java


I want to reboot a computer that is connected with network by RMI,(Remote computer) Is there any way of doing that ?

And the other question is;

I have a remote computer that is power off. I know ip of that. And I want to start up it. Is it possible with java ?

Thanks,


Solution

  • What is OS of remote machine?

    if windows shutdown -r will do.