Schedule Reboot via Task Scheduler

Schedules a reboot via Task Scheduler


This script uses a powershell script to schedule a reboot task via task scheduler. I find this helpful if you want to avoid issues with Kaseya server maintenance but still need machines to reboot during your maintenance window.

  • Name: Joseph Haney
  • Company: SSD
  • Website: http://
  • Contact Developer
  • Summary
  • Schedule Reboot via Task Scheduler
  • Initially Released December 28th, 2017
  • Reviews

    Schedule Reboot via Task Scheduler has no reviews.

    Gravatar for James Donald
    James Donald 7 months ago

    I made a slight modification to the Powershell script so that the system reboots.

    1. Updated with additional line in ScheduledReboot.ps1

    " $principal = New-ScheduledTaskPrincipal -UserID "NT AUTHORITY\SYSTEM" -LogonType ServiceAccount -RunLevel Highest"

    2. Added "-Principal $principal" to the Register-ScheduledTask line.

    3. Now reboots occur as the scheduled task would not run as no user logged in error.

    Gravatar for Travis Atkinson
    Travis Atkinson 4 months ago

    Hi James. Thank you for this script.  Are the modifications you noted already in the PS1 file?  I tested the procedure on one of my endpoints and it copies the files to the kworking dir and VSA says the procedure was successful, but the machine never restarted at the scheduled time.  I did a run once for a few minutes out.  I have it scheduled for tonight at 10pm to see if maybe there was discrepancy in the times between my machine and the endpoint and will see if it works on schedule.  Thanks again!