Monday, July 23, 2018

Restart windows server at specific time

I day today activities, you may need to restart your servers daily, weekly etc. when you have so many servers, it may be a vert cumbersome task.
1. Restart server - create a script
2. run task at specific time  -create task schedular


1. below is the script
---------------------------------------
shutdown /r /f
----------------------------------------


2. create task

a.) General tab , tick "Run whether user log or not" and "Run with highest privileges"
b.) Trigger give time you need to execute the script

refer previous article to set up command
   https://cgenit.blogspot.com/2018/07/stop-iis-with-task-schedular.html

No comments:

Post a Comment