On my SBS 2011 I have a batch file called wakeup-nas.bat, with the following contents:
wol.exe 5475e0d59ffa
wol.exe is an executable for sending wake on lan packets. It is in the same directory as the batch file.
Strangely the command is only working when I write it directly in the command prompt. When I open the batch file nothing happens, although I see the output from wol.exe that the packet has successfully been sent.
I also have tried to open the batch file "as administrator" with no success either.