Avatar of Tim Grier
Tim Grier
Flag for United States of America asked on

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

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.
DellWindows OSWindows Server 2008

Avatar of undefined
Last Comment
Lee W, MVP

8/22/2022 - Mon
Lee W, MVP

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Tom Cieslik

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, MVP

/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 Grier

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!!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
Lee W, MVP

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