I would like to send a POWEROFF command via ssh using putty during my win2003 server's shutdown procedure. I managed to run a batch file with one single windows command like this one:
putty JIMMY@192.168.2.2 -pw 123456 -m mypoweroff.txt
where mypoweroff.txt simply contains a "HALT" command. This works fine. However, the HALT command doesn't physically stop the rotating disks. It just stops the processor in the MBWE2. So I'd prefer the POWEROFF command.
POWEROFF can only be started by root. If my txt file contains a change to root:
the script stops after the su command. It must have something to do with different process levels. Sorry, my linux knowledge is rather limited. Is there a simple way to use the POWEROFF command without switching to root?