[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2417
  • Last Modified:

schedule shutdown in windows 2003 server

Hi.

I want to schedule the shutdown of my server (to save electricity... i have tried using the command "shutdown.exe" in the task scheduler, but sometimes works, sometimes doesn't... most of the time the server doesn't shutdown.

Do you know a better method to schedule a shut down?

Thanks
0
kalvillo
Asked:
kalvillo
1 Solution
 
Phadke_hemantCommented:
if you want to use a tool for schedule the shutdown, have a look on this -
http://www.sharewareconnection.com/titles/schedule-shutdown.htm
0
 
starmonkeyCommented:
sounds like running apps may be preventing shut down.  You might need some switches

shutdown -r -f -t 60
the trick is the -f switch, it forces apps to close.

the -r switch reboots.  You may not want this.

to see all options on command line:
shutdown /?

Save this in a batch file (text file ending in .bat)  then scedule with sceduled tasks in control pannel.
0
 
KCTSCommented:
Make sure that the scheduled task in running under an account that has the necessary permissions of shutdown the system.
0
 
carlsteersCommented:
Thanks!!!! This is exactly what I needed!
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now