-
September 10th, 2007, 08:27 AM
#1
Junior Member
cgywin ssh script help
Hello all,
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
"incorrect function"
Can anyone tell me what I'm missing here?
FN
-
September 10th, 2007, 11:48 AM
#2
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.
Similar Threads
-
By rOCk-MaStEr in forum Web Development
Replies: 15
Last Post: December 11th, 2004, 03:21 AM
-
By deftones12 in forum Programming Security
Replies: 7
Last Post: June 22nd, 2004, 06:43 PM
-
By gore in forum Newbie Security Questions
Replies: 11
Last Post: December 29th, 2003, 08:01 AM
-
By roswell1329 in forum Other Tutorials Forum
Replies: 0
Last Post: December 18th, 2002, 08:16 AM
-
By slackwarelinux in forum IDS & Scanner Discussions
Replies: 1
Last Post: July 23rd, 2002, 06:24 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|