Link to home
Start Free TrialLog in
Avatar of shouichi
shouichiFlag for Belgium

asked on

What is the best way to restart server at midnight ?

What is the best way to restart server at midnight everyday ?

script,
bat,
Scheduled task..

whatever is OK .
Please let me know the easiest and professional way.
Avatar of Kent W
Kent W
Flag of United States of America image

If it's windows, you can script the shutdown command

from remote with admin credentials -

shutdown \\computername /r

locally

shutdown /l /a /y

use scheduler to run the command or batch file containing the command
What is really fine just to restart a server but now it might not be ok depending on the servers' applications
ASKER CERTIFIED SOLUTION
Avatar of Chris Millard
Chris Millard
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ohhh...K...
Guess my version was harder to read or something? ;)
@mugojava - I think your (local) switches are from a 2000/NT version of shutdown - PLUS the /a aborts the shutdown, and the /l /y doesn't restart the server, it simply logs the user off...