September 10th, 2007, 08:27 AM
cgywin ssh script help
I'm sorta new with cgywin and needed some help with a problem.
I want to write a script that allows me to shutdown every computer in my house from the command line of my laptop. The script is easy enough but getting it executed on the remote computers is the problem. I checked windows and found
out about RSH but that seems to have gone extinct around NT4.0. From there I went to ssh for a remote connection to the computers. That has worked up until the point I try and run the script remotely. When I access the C: drive on the remote computer where I have the script stored I type ./xxx.bat.
The computer then reports the script to the C prompt and then tells me
Can anyone tell me what I'm missing here?
September 10th, 2007, 11:48 AM
shutdown /s /m \\192.168.x.x /t 0 /f /c "System Shutting Down"
Just use above along with a loop for each IP Address and you are sorted as long as you run it as admin.
By rOCk-MaStEr in forum Web Development
Last Post: December 11th, 2004, 02:21 AM
By deftones12 in forum Programming Security
Last Post: June 22nd, 2004, 06:43 PM
By gore in forum Newbie Security Questions
Last Post: December 29th, 2003, 07:01 AM
By roswell1329 in forum Other Tutorials Forum
Last Post: December 18th, 2002, 07:16 AM
By slackwarelinux in forum IDS & Scanner Discussions
Last Post: July 23rd, 2002, 06:24 AM