• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 498
  • Last Modified:

Server auto start

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
apollo-13
Asked:
apollo-13
3 Solutions
 
Elmar KoschkaIT System EngineerCommented:
Write in a batch (.cmd) follow command and execute it with sheduled task.

Shutdown -r -t 1
0
 
dkumar82Commented:
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
 
w3rCommented:
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
 
apollo-13Author Commented:
where to write  "shutdown -f -r -t 00 -c"
0
 
w3rCommented:
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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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