I have a .bat script running on a server as a scheduled task to shutdown 2 workstations on the network every night.
the script is this:
for /f %%a in ('type %list%') do (
shutdown -s -f -t 60 /m \\%%a
it sources the computer names on shutdowns.txt:
and produces a log file shutdownlog.txt:
the problems with the script are:
1) log file only shows last PC on shutdowns.txt with no error message
2) both workstations did not shut down, probably due to the fact that they were in sleep mode. this wasnt reflected in the log file as well.
If you could help me fix this that would be greatly appreciated!