We help IT Professionals succeed at work.

How to schedule Windows Server 2008 to restart automatically once a week?

197 Views
Last Modified: 2018-08-24
I have a client with a DELL server running Windows Server 2008 R2.
We are managing it via ConnectWise Automate v12
I want to schedule the computer to restart every Sunday at 1AM.
How is it best to do this? Via a Scheduled Task on the server or via CWA?
And which ever is best, how do I configure it to do so?
Thanks in advance.
Comment
Watch Question

Technology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Tom CieslikIT Superintendent
CERTIFIED EXPERT
Distinguished Expert 2017

Commented:
I think is good to add -F on the end   (FORCE)

SOmetimes some OS shutdown require to use / switch instead of -

You must check,,, just type shutdown in your CMD window and check what switch your server command accepting

if is /

use:   shutdown /r /t 60 /f

if is -

use: shutdown -r -t 60 -f

Save in BAT file and create schedule task.
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
/f is unnecessary when /t is provided with a value greater than 0.  If you run shutdown /? and look at the info for /t:

Help on /t
Tim Grierowner

Author

Commented:
Thanks guys! Created the batch file, saved it and scheduled it on the server.
BTW Tom, my server used the / and not the - as you had mentioned.
Have a great weekend!!
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
Never seen shutdown have a problem with - as an option.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions