Javascript required
Skip to content Skip to sidebar Skip to footer

How to Set Shutdown Timer in Windows Server 2008 R2

  1. Home
  2. Windows
  3. Windows Server

Hi Everyone,

Im curious if there is any type of software or Server Feature that I can install that can boot the Server at a specified time, and shut it down at a specified time.

Does anyone know of anything like this?

Thanks in advance,

B


JARITM

Server shutdown is simple. Create a batch or vbs file using the CLI argument "shutdown" (from a dos prompt, type in "shutdown /?" to view your options), and set a scheduled task to run the batch/script file at your designated time.

Automatic start up, if not an option in BIOS, may also be achieved by using hibernation instead of a full shutdown.

If you use hibernation, you can set both start up and hibernate tasks within the OS itself as scheduled events.

You would have to do some research to see what solution(s) would apply to achieve your own desired results.

Edited Jul 27, 2014 at 18:24 UTC
Popular Topics in Windows Server

The help desk software for IT. Free.

Track users' IT needs, easily, and with only the features you need.

11 Replies

mrnutcracker

Shut down can be handled via task scheduler. For startup, does the server support wake on lan? If so, install this program on another computer http://www.nirsoft.net/utils/wake_on_lan.html
It can run from the CLI. You can make that a scheduled task from the remote computer, or do it manually. Hope this helps.

Bryan Douglas

I do have WOL set up on my mac, but that wouldn't always be awake when I need the Server to start up.

Does the Task Scheduler operate even when the Server is off?

JARITM

Check the system BIOS before you look for any 3rd party apps or solutions.

Most system's today have a BIOS entry for a wake up timer.Combine this with with a scheduled task shutdown as already suggested, and you are all set. Your caveat's in all of this:

Make sure that your system BIOS battery is in good condition. Set a calender reminder once a year or so to check it.

Set your system(s)/domain to regularly sync their clocks to a single source (see ntp.org if you need help).

Bryan Douglas

The Server requires to be logged into to automate the start of Spiceworks. Is there anyway I can get it to auto login? Or is it even possible to remove the password from a DC let alone a Windows Server?

JARITM

Not sure what version of SW you are running, but the latest release has the option, after installation, to be configured to run as a service - no desktop level log in required (see attached image).

From a security stance, setting any server to auto log on is Bad. Same goes for allowing unsecured accounts.

Bryan Douglas

Really? I had no idea that "Run as a service" was able to do that. I originally thought it had to be started with some kind of Windows Authentication

Bryan Douglas

Oh wait, So do I enter the Local Computers login info into those two text boxes?

JARITM

You can use a local account, but if you are on a domain and it is not a domain account, you won't have access to your AD information.

Google Search: spiceworks run as service

Run Spiceworks In Service Mode

Run spiceworks as a service

Bryan Douglas

Seems to be all good, the domain name was auto inserted when I configured it. Now I just have to discover the auto boot and auto shutdown

JARITM

Server shutdown is simple. Create a batch or vbs file using the CLI argument "shutdown" (from a dos prompt, type in "shutdown /?" to view your options), and set a scheduled task to run the batch/script file at your designated time.

Automatic start up, if not an option in BIOS, may also be achieved by using hibernation instead of a full shutdown.

If you use hibernation, you can set both start up and hibernate tasks within the OS itself as scheduled events.

You would have to do some research to see what solution(s) would apply to achieve your own desired results.

Edited Jul 27, 2014 at 18:24 UTC
Bryan Douglas

I have Tasks scheduled to run batch file that put it into hibernation and wake it up.

Its set to hibernate at midnight and to wake up at 5:45 AM, It does not do these events though. I have the wake event set to wake the Server to Run.

Thanks

Bryan

This topic has been locked by an administrator and is no longer open for commenting.

To continue this discussion, please ask a new question.

How to Set Shutdown Timer in Windows Server 2008 R2

Source: https://community.spiceworks.com/topic/547715-windows-server-2008-automated-boot-and-shut-down-software