I've got a new strange task from big boss that "At the end of every working, every one must shut down computer in order to save electric and global warming issue... Interesting!"
therefore i have to write a batch file which close all terminal, if its not shutdown by users. There are about 50 terminals. now i have not too many chance to try my script as test so please help and advice
I am using this
shutdown -s -f -m\\computername -c "Daily Shut Down"
when ever user log off its synchronize from system, My document folder which is map on server drive synchronize, if any error occur it show warning or error. when i try this script shutdown process stops and synchronize screen pop up with warning messege
warning occurred with some warning messages..........
which means i have to click OK to turnoff system.
and i am using this to restart my windows 2003 server SBS
shutdown -s -f -m \\Michael Computer -c "Daily Shut Down" -d up:125:1
[i cant try this on server, it must be correct if its wrong let me know, i have only one bullet for this]
for help i am using this http://www.computerhope.com/shutdown.htm