Skip to main content

Auto Reboot Management - Reboot Machine

Overview​

This automation restarts a device for the Auto Reboot Management - NinjaOne solution. The Auto Reboot Management - Reboot Trigger [Windows Servers] and Auto Reboot Management - Reboot Trigger [Windows Workstations] compound conditions run it when cPVAL Auto Reboot Scheduled For holds a pending restart request. It schedules a forced restart for the requested time, so Windows shows the signed-in user a restart notice until then, and writes the outcome back to the same field.

note

The compound conditions run this automation, so you don't need to run it yourself. It takes no script variables. It never restarts a device when the requested time has already passed, so a device that comes online late isn't restarted without notice.

Requirements​

  • Windows 10, Windows 11, or Windows Server 2012 R2 or later
  • Run As: System
  • PowerShell 5.1

Sample Run​

Image1

Scenarios​

  • Restart time ahead: the automation schedules a forced restart for that time and writes Scheduled at and the time to cPVAL Auto Reboot Scheduled For. The user sees a notice that the computer will restart, at what time, and should save their work.
  • Restart time passed: the automation doesn't restart the device and writes Missed at and the time.
  • Restart already scheduled in Windows: the existing restart or shutdown is left in place and the outcome is Scheduled, so a repeated run never cancels or moves a restart.
  • No pending request: for example after a technician cleared the field to cancel the restart. The automation makes no changes.
  • Restart can't be scheduled: the automation writes Failed at, the time and the reason, and shows as failed.

Custom Fields​

Custom FieldScopeTypeDescription
cPVAL Auto Reboot Scheduled ForDeviceTextRead for the requested restart time and rewritten with the outcome.

Dependencies​

Automation Setup/Import​

Automation Configuration

Output​

Changelog​

2026-11-11​

  • Initial version of the document