![]() ![]() Alternative to the -s option (see above). r : setup the automatic reboot of the system: this option is required to ensure that your system will actually restart. Alternative to the -r option (see below). s : setup the automatic shutdown of the system without a reboot. Here's a brief explanation of the parameters used above: Setup an automatic Shutdown (without reboot) Once done, move to the Actions tab and click to the New button to setup the command to execute whenever the trigger fires. The most common trigger to setup here is a time-based trigger, which can be set by selecting the On a schedule option on the Begin the task dropdown list: Il trigger che abbiamo creato eseguirà l'attività ogni notte alle ore 04:00.įor further info regarding triggers, take a look at this MS TechNet page. A New Trigger modal window will then be opened, which you can use to setup such event. Once done, move to the Trigger tab and click on the New button to create an execution trigger - which is, the event that will make the system run the task itself. Run with highest privileges, to make sure that the task will be executed with administrator rights - this is required for issuing a system hutdown or a reboot.įor further info regarding the other options, check out this MS TechNet article.Run whether user is logged on or not, to ensure that the task will be executed even if there are no logged-in users.Other than that, it can be useful to properly setup the following options: Once the Task Scheduler window is open, create a new task using the Create Task action in the following way:Ī modal window will be opened: use the General tab to setup a name and a description to the new task. Windows Vista, Windows 7/8/8.1/10, Windows Server 2008 and newer versions: open the Administrative Tools folder, then select the Task Scheduler icon. ![]() Windows 2000/ XP, Windows Server 2003 and previous versions/builds: select the Task Scheduler (or Scheduled Tasks) icon.To set up an automatic system restart, open the Control Panel (if you do not know how to do on Windows 10, read here) and open the Task Scheduler in the following way, depending on your version of Windows: Since the ability to recover after those unexpected events is the fundamental premise of any Disaster Recovery procedure, setting a reboot at regular intervals might also be a not-so-terrible way to periodically test our system against these kind of threats. Setting up our machines to reboot at regular intervals could also be useful to ensure that the system will be able to get back on track in case of a planned reboot - such as those issued by system updates or due to unforeseen situations - service interruption, power failure, hardware failure and other more or less serious events that could always happen. It's also worth noting that you can often get the same benefits by recycling the Application Pools or other resource-heavy processes, as we'll see in a short while. The ideal interval, needless to say, might vary a lot depending on the features performed by our server, its service availability expectactions and other variables in play: if the server performs its activities only during daytime can probably be restarted every night without major issue, while a web server that serves sites or services troughout the world should be restarted only in exceptional circumstances. Depending on the situation, it could even be acceptable to setup a recurrent period - once a week, for example - to issue a system reboot. Despite the common belief, the practice of programming a system reboot or shutdown of a client or server machine isn't necessarily a bad thing: in some limited scenario planning a regular shutdown or reboot of the operating system could be a decent workaround to securely put the machine in a desired state - for example, to make it ready for a VM-based backup or for installing a planned update.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |