remote shutdown (*.bat script) without administrator rights

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello.
I a'm newbie Internet Caffe administartor (or tech supprot:).
My problem: I want to create sctipt (*.bat or *.cmd file) to restart any od
50 computers anytime. I can't change antyhing on caffe computers (I'm tech
worker). I've got one main machine which is used also by other workers. Only
i know the administrator pasword on all computers i caffe. I've got other
administrator pasword for main computer and for computer for clients. And now
my problem:
I want use "shutdown /r /t 00 /m \\sXX" in cmd. I need administrator
permision tu use that. I don't want to show this pasword my co-workers. can I
make simple script (e.g. for every machine) to restart it remotly (by any
worker on main machine), but without unhide Admin pasword? Mayby I can make
some crypted input file with this pasword). Any idea? Any sugestion? And if
not mayby somebdoy know simple c++ code to do the same thing on Win XP)

Cheers!!
 
matisq said:
Hello.
I a'm newbie Internet Caffe administartor (or tech supprot:).
My problem: I want to create sctipt (*.bat or *.cmd file) to restart any od
50 computers anytime. I can't change antyhing on caffe computers (I'm tech
worker). I've got one main machine which is used also by other workers. Only
i know the administrator pasword on all computers i caffe. I've got other
administrator pasword for main computer and for computer for clients. And now
my problem:
I want use "shutdown /r /t 00 /m \\sXX" in cmd. I need administrator
permision tu use that. I don't want to show this pasword my co-workers. can I
make simple script (e.g. for every machine) to restart it remotly (by any
worker on main machine), but without unhide Admin pasword? Mayby I can make
some crypted input file with this pasword). Any idea? Any sugestion? And if
not mayby somebdoy know simple c++ code to do the same thing on Win XP)

Cheers!!

You cannot shut down another machine without using an
administrator account / password. If you could then this
would constitute a serious security breach. However, you
can get an other machine to shut itself down when you
signal it to do so. Here is how you could do it:

1. Create a share on the master machine, e.g. \\master\reboot.
2. Give everyone full access rights to this share.
3. Put the following lines into the batch file \\master\reboot\reboot.bat:
@echo off
if not exist \\master\reboot\%ComputerName%.txt goto :eof
del \\master\reboot\%ComputerName%.txt
shutdown -r -t 10 -f
4. Create a scheduled task on each workstation. It should run
once every five minutes, 24 hours a day. The account under
which it runs must have access rights to \\master\reboot. The
scheduled task should invoke the batch file \\master\reboot\reboot.bat.

To signal PC10 to reboot, create the file
\\master\reboot\PC10.txt. Within five minutes PC10
will reboot. And by the way, consider using a
spelling checker for your next post. It would make
your posts look much more professional.
 
Back
Top