How can I restart a server on a regular basis, say every Sunday morning?

Article ID: 406
Category: Application Scheduler
Updated: 2019-09-12

The easiest way to accomplish this is by using the EventSentry application scheduler & the Windows "Shutdown.exe" application.

Application Scheduler is a feature that can be enabled under "System Health". You can schedule to run any command-line application from within EventSentry for custom system monitoring

  1. Open the management console and either find an existing system health package to add this application schedule to, or create a new system health package.
  2. Make sure the package is assigned correctly or set it global if the schedule should apply to all the hosts in your network.
  3. Add an "Application Scheduler" to that package
  4. Select your desired day/time and then in filename, add: C:\Windows\System32\shutdown.exe /r /f /d p:0:0 /c "Weekly Shutdown" /r is used to restart the server after shutdown, /f is to force close applications, /d p:0:0 is for the reason Other (Planned) and /c is a comment on the reason for the restart or shutdown.

    You can also verify recent reboots using EventSentry.