Solved

Server auto start

Posted on 2012-03-26
5
487 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
Comment Utility
Write in a batch (.cmd) follow command and execute it with sheduled task.

Shutdown -r -t 1
0
 
LVL 8

Expert Comment

by:dkumar82
Comment Utility
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
Comment Utility
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
Comment Utility
where to write  "shutdown -f -r -t 00 -c"
0
 
LVL 3

Assisted Solution

by:w3r
w3r earned 450 total points
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

I was asked if I could set up a fax machine so that incoming faxes were delivered to people's Exchange inboxes and so that they could send faxes from their desktops without needing to print the document first.  I knew it was possible but I had no id…
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now