Is there a way through group policy to add a scheduled task that forces users to logoff at a certain time each night? I was able to create a .cmd script and put that in group policy. It is in the code section of this question. It didn't work. In event viewer there is an error that reads: The At2.job command failed to start due to the following error:
The system cannot find the file specified.
at 22:00 /EVERY:M,T,W,Th,F,S,Su "shutdown -r -f -t 60 -c "Please close all programs - this PC will now restart"