Solved

Server auto start

Posted on 2012-03-26
5
490 Views
Last Modified: 2012-06-22
I have a windows 2008 R2 server.I would like server restart every night at 02:00 itself.
I know i need to task create .

Can someone help me create this task.

Thanks
0
Comment
Question by:apollo-13
5 Comments
 
LVL 8

Assisted Solution

by:Elmar-H
Elmar-H earned 50 total points
ID: 37765336
Write in a batch (.cmd) follow command and execute it with sheduled task.

Shutdown -r -t 1
0
 
LVL 8

Expert Comment

by:dkumar82
ID: 37765354
Go to schedule task and create a new task - shutdown -f -r -t 00 -c "Planned Reboot"

and set the schedule to daily 2.00 am
0
 
LVL 3

Accepted Solution

by:
w3r earned 450 total points
ID: 37765582
If you need it more specific:

Create a .cmd File like Elmar-H or dkumar82 said with the command in it. Save it to eg. C:\ and name it eg. server_reboot.cmd
Just type shutdown in a command window to see all available parameters.

1) Open Start Menu
2) Type "task" in the search panel
3) Open Task Scheduler
4) Mark "Task Scheduler (local)" on the top
5) On the right pane click on "Create Basic Task"
6) Choose a name eg. "Server reboot" and click Next
7) Trigger "Daily" and Next
8) Set Time to 02:00
9) Choose Start a Program and choose the .cmd file you've created before (eg. C:\server_reboot.cmd) and click Next
10) Check "Open the Properties dialog..." and then click on Finish
11) On the Properties page check "Run whether user is logged on or not" and click OK
12) Type in your user credentials (user must be allowed to reboot the server!)  and click OK

To review or edit your task, mark on the left pane "Task Scheduler Library"
0
 

Author Comment

by:apollo-13
ID: 37765700
where to write  "shutdown -f -r -t 00 -c"
0
 
LVL 3

Assisted Solution

by:w3r
w3r earned 450 total points
ID: 37765784
Create a new file on C:\ and name it server_reboot.cmd or something else. Open it in Notepad and paste the command shutdown -f -r -t 00 -c
Save it.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When I recently replaced my image transfer kit on my office HP color laserjet 5550dn printer, I had a slight problem.  The left bracket that holds the transfer kit got stuck in the upright locked position instead of being at a 45 degree angle facing…
Printers have changed substantially in the last 30 or so years, not just in technical capabilities but in cost and usage as well.  Printers were originally used for interfacing with the operator, not necessarily for printing copy or pictures. In …
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question