Shutdown Windows machine from linux terminal

前端 未结 8 1909
眼角桃花
眼角桃花 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:31

    Use telnet command in Linux, make sure telnet is enabled in Windows system

    0 讨论(0)
  • 2020-12-28 21:45

    Option 1: Install SSH server on windows. Login to this server from any box and call shutdown command. We use Interix(Microsoft's unix like environment). It comes with a telnet server- allows to invoke windows commands from other machines..

    Another option: If you samba installed on windows it can connect to windows and call windows commands

     net rpc SHUTDOWN ...
    

    (from http://www.linuxforums.org/forum/red-hat-fedora-linux/60324-remote-shutdown-windows-linux-box.html#post573872 )

    Another option: try rdesktop to the windows machine with shutdown command ( I use it for running windows batch script which has shutdown in it, not sure if you can directly call shutodwn)

    0 讨论(0)
提交回复
热议问题