shouichi
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.
script,
bat,
Scheduled task..
whatever is OK .
Please let me know the easiest and professional way.
What is really fine just to restart a server but now it might not be ok depending on the servers' applications
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ohhh...K...
Guess my version was harder to read or something? ;)
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...
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