Solved

Server auto start

Posted on 2012-03-26
5
491 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

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.

Question has a verified solution.

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

I was supporting a handful of Windows 2008 (non-R2) 2 node clusters with shared quorum disks. Some had SQL 2008 installed and some were just a vendor application that we supported. For the purposes of this article it doesn’t really matter which so w…
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

730 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