I've been trying to get Server 2008 R2 to reboot after everyone is gone from work, to get its updates installed, but what I've been trying apparently isn't working.
I have a "reboot.bat" in C:/ that contains:
shutdown –r –f –t 5
The task is scheduled for 11:00PM, but when I come in the next day, it says "Last Run Result: (0x1)." and the server hasn't restarted.
Is there a better way to do this? Hopefully one that works...?