Shutdown Windows machine from linux terminal

前端 未结 8 1998
眼角桃花
眼角桃花 2020-12-28 21:12

I am running an application on linux machine. By giving the ip address of a windows machine as input, the application must shutdown the windows machine. If the machines run

8条回答
  •  滥情空心
    2020-12-28 21:23

    Command to shutdown windows system from linux -:

    $ net rpc -S -U % shutdown -t 1 -f

    This command can be issued from bash or even set in cron job to shutdown the computer at a specific time and this command is shipped with many distros by default.

提交回复
热议问题