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

auto reboot

I have a windows 2008 r2 server and I want to set it to auto reboot every saturday night.  What is the best way to do this?  Also, would I be able to see a log file of the reboot the next day to make sure it is rebooting?
0
mkramer777
Asked:
mkramer777
  • 2
1 Solution
 
KimputerCommented:
You can use the task scheduler with the command

shutdown /r /t 1

The "eventlog" source in the system eventvwr will always show it's been rebooted.

Personally, I throw in a messaging app in the task scheduler was well at the trigger "when the computer starts", so I receive a message on my phone on my Telegram. so I never check the event log.
0
 
mkramer777Author Commented:
Does the shutdown /r/t 1 command shutdown the computer or reboot it?  Just making sure.
0
 
KimputerCommented:
you forgot a space:

shutdown /r /t 1

Reboots the computer within 1 seconds

For shutdown, use:
shutdown /s /t 1
0
 
Seth SimmonsSr. Systems AdministratorCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Kimputer (https:#a41759366)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

seth2740
Experts-Exchange Cleanup Volunteer
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

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