General discussion
March 29, 2006 at 05:35 AM
trinianouk

Remote Shutdown batch file

by trinianouk . Updated 14 years, 9 months ago

Hi, I’m have a problem executing a shutdown batch file using the Task scheduler W2K3.

I created a batch file (Shutdown.bat) on the W2K server that has a single command:

shutdown -s -m \\Computername

If I run the command from the command prompt using the actual name of the client PC it works….the client shuts down…OK!
However, if I set the .bat to run as a task the command prompt pops up and I see the command executing over and over and over.
Its like it goes into a loop then I have to press Ctrl -C to terminate the batch file…the client PC does not shut down either.

Whats the problem here…any help greatly apprciated.

Jason.

This discussion is locked

All Comments