Question Locked

Script to shutdown the win2k server

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Dear All

We have win2k server and i want to shutdown this server automatically at 10pm everyday. Can someone give me some batch file or script to do the same also let me know where to place this script.

Thanks in advance

Regards
Sakthi

3 replies

by scott_heath

Do you want to shutdwon or reboot? I would use Windows Scheduler and the shudown.exe command. Something like 'shutdown -r -f' to force reboot immediately. Might want to set up a 'net send * "The server is being rebooted in X minutes. Please save your work and log off."' to go out every 5 minutes or so starting 15 minutes before the reboot. Just in case.

by han

Good day,

1st you may need to use a notepad to create a batch file say "shutdown.bat" in your C: In the batch file, you include this script line "%windir%\system32\shutdown.exe -s -t 0".
Then, you create and activate the windows scheduler to execute the shutdown.bat file at 10pm daily.
Now, you wish is come true! God bless....

This discussion is closed to new replies.