This is a discussion on shutdown windows from linux within the Linux Networking forums, part of the Linux Forums category; I have 2 windows box and one linux box. I want to shutdown the windows box remotely from linux box. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
On Wed, 10 May 2006 06:52:09 -0700, diffuser78 wrote:
> I have 2 windows box and one linux box. I want to shutdown the windows box > remotely from linux box. > > Any ideas for the above problem ?? > > Every help is appreciated. > > Thanks Vnc, remote desktop .... -- Chaos, panic & disorder - my work here is done http://beginnerslinux.org |
|
|||
|
diffuser78@gmail.com writes:
>I have 2 windows box and one linux box. I want to shutdown the windows >box remotely from linux box. >Any ideas for the above problem ?? >Every help is appreciated. Do the windows boxes have a shutdown command? Is there some way of running a command from Linux on the windows boxes (eg having an sshd daemon running on the windows boxes?) >Thanks |
|
|||
|
diffuser78@gmail.com wrote:
> windows do have shutdown command, but how do i remotely send this to > the windows box from linux box. SSH works only on linux (as far as my > knowledge goes..i am a newbie) . Run a telnet or ssh daemon on the Windows box, maybe? Sounds to me like you should be asking this on a Windows newsgroup, not a Linux one, since the question is basically "How do I shut down Windows remotely (without using remote desktop)", not "How do I do it with Linux?" -- Oh to have a lodge in some vast wilderness. Where rumors of oppression and deceit, of unsuccessful and successful wars may never reach me anymore. -- William Cowper |
|
|||
|
diffuser78@gmail.com wrote:
> windows do have shutdown command, but how do i remotely send this to > the windows box from linux box. SSH works only on linux (as far as my > knowledge goes..i am a newbie) . I think there is at least one shareware/freeware sshd for windows. If you don't care about security, Microsoft has a telnet server service (daemon) for XP (not installed/activated by default, perhaps as part of XP or the Microsoft Ressource Kit). A shutdown command is included in XP (or the Microsoft Ressource Kit) or us this http://www.sysinternals.com/Utilities/PsShutdown.html to shutdown the "local" computer after logging in via SSH. > Eveyr help is appreciated. > > Thanks Lothar |
|
|||
|
>I have to strictly use Linux box to shutdown the windows PC.
You need to be running some type of service on the windows box. It would also have to be administrator. Complicating this is the ip address, if dhcp and it changes, your linux system needs to be able to locate the windows boxes to send a shutdown message. A cheap way would be a service that periodically looks for a file and resets the system if the file shows up. You can ftp or drop the file or the windows service can look in a samba mount point to spot the file. I have done this with about 20 notebooks, ftp a file and an app on the notebooks resets them. Not all notebooks seem to shut down cleanly at least on the win98 ones I had. Some would say "shutting down" and never shut down. A better solution would be to run a window script on a windows box. Enumerate the domain and issue a shutdown request to the boxes on the windows domain. see "Windows 2000 scripting guide" and you can download free software from microsoft so you dont have to actually buy the book. This begs the question of how your linux box gets the windows one to run the script. I have done this in a windows domain, but not from a linux box. A more expensive way would be to use a naming service on your linux box. A windows box's service would find the naming service and register with it. The linux box would then have a list of subscribers that it could send a message to causing a shutdown. CORBA has tools to do this. Look here for software http://deuce.doc.wustl.edu/Download.html and read news:comp.soft-sys.ace BTW: I inadvertantly email this to you instead of posting it. ================================================== ===================== Beemer Biker joestateson at grandecom dot net http://TipsForTheComputingImpaired.com http://ResearchRiders.org Ask about my 99'R1100RT ================================================== ===================== |