Skip to main content

Auto Reboot Management - NinjaOne

Purpose​

Auto Reboot Management restarts Windows workstations and servers managed in NinjaOne on a regular schedule, so updates finish installing and devices don't run for weeks without a restart. You choose the days, time and week of the month once for a client, and change it for a location or a single device where needed. It's the NinjaOne version of the ConnectWise Automate Auto Reboot Management solution.

The Auto Reboot Management scheduled task runs on one device every hour. Its first automation, Auto Reboot Management, works out the schedule that applies to each device and writes a restart request to the devices due to restart before the next run. A compound condition on each device picks up the request and schedules the restart, so the signed-in user sees a restart notice well ahead of it. The automation then confirms each restart from the device's last boot time, records the result in a status table, and can open a ConnectWise Manage ticket when a restart fails. The task's second automation turns the status of every device into a report per client and for all clients.

Platform: NinjaOne

Key Capabilities​

  • Inherited schedules – Set the schedule at the organization, location or device level. The most specific value wins, so one setting covers a whole client and exceptions take seconds.
  • Separate server and workstation rules – Servers and workstations each have their own week of the month, maintenance mode and pending reboot settings, and can be enabled separately.
  • Monthly schedules – Restart every week, or in one week of the month only, such as the second Tuesday.
  • Protected roles – Domain controllers and Hyper-V hosts are left alone unless you include them.
  • Pending reboot check – Optionally restart only devices that NinjaOne reports as waiting for a reboot.
  • Maintenance mode – Suppress alerts and tasks around each restart, from 5 minutes before it.
  • Restart verification – Every restart is checked against the device's last boot time, and failures are recorded on the device.
  • Failure tickets – Optionally open a ConnectWise Manage ticket when a restart fails, per device type.
  • Cross-client report – A Knowledge Base article or CSV file per client and for all clients, the equivalent of the Automate dataview.

Important Caveats & Behavior​

  • Restarts are forced – Windows closes open applications at the restart time, and unsaved work is lost. Users see a notice about 50 minutes ahead of a restart on the hour and about 20 minutes ahead of one on the half hour, but can't postpone it.
  • Times follow the primary machine – Every restart day and time you select, and every time shown in the status field, the report, the failure field and failure tickets, is in the time zone of the primary machine that runs Auto Reboot Management. For a device in another time zone, convert its restart time first. See Time Zones.
  • On the hour or half hour only – NinjaOne can't schedule a task more often than every hour, so the task runs at 5 minutes past each hour. Restart times are offered on the hour and the half hour only, so every restart is requested at least 25 minutes ahead.
  • One primary machine – The Auto Reboot Management scheduled task must target one always-on device. If that device is offline when a run is due, the restarts due in the next hour are not requested.
  • Offline devices are skipped – A device that's offline when its restart is requested, 25 to 55 minutes ahead, gets no request and isn't restarted. The status shows Skipped - Offline, and the device restarts at its next scheduled time.
  • Late devices don't restart – A device that goes offline after receiving its request and comes back after the restart time records the restart as missed instead of restarting without notice. It restarts at its next scheduled time.
  • Domain controllers and Hyper-V hosts are excluded by default – Include them with cPVAL Auto Reboot Include DC and cPVAL Auto Reboot Include Hyper-V Host.
  • Windows only – Macs and Linux devices are not restarted.

How It Works​

  1. Settings: a technician sets cPVAL Auto Reboot, cPVAL Auto Reboot Days, cPVAL Auto Reboot Time and the optional fields at the organization, location or device level.
  2. Request: every hour, at 5 minutes past the hour, the Auto Reboot Management scheduled task runs Auto Reboot Management, which works out the next restart of every enabled device. For each device due before the next run, it writes the restart time to cPVAL Auto Reboot Scheduled For and schedules maintenance mode around it. A restart on the hour is requested about 55 minutes ahead, and one on the half hour about 25 minutes ahead.
  3. Restart: the Reboot Trigger compound condition checks the field every 6 minutes and runs Auto Reboot Management - Reboot Machine, which schedules a forced restart for the requested time and records Scheduled in the field. The user sees the Windows restart notice until the restart.
  4. Verify: at later runs, Auto Reboot Management compares the device's last boot time with the request and records the result in cPVAL Auto Reboot Status. A failed restart is written to cPVAL Auto Reboot Failure.
  5. Ticket (optional): the Reboot Failure compound condition opens a ConnectWise Manage ticket when a failure is recorded and cPVAL Auto Reboot Failure Ticket covers the device type. The ticket closes when the failure is cleared.
  6. Report: the same scheduled task then runs WYSIWYG Custom Field Report - Organization and Global KB, which publishes cPVAL Auto Reboot Status as the Auto Reboot Management Status report.

Time Zones​

NinjaOne runs Auto Reboot Management on the primary machine, so the solution works in that machine's time zone:

  • The days and time you select are read as the primary machine's time. A device in another time zone restarts at the same moment, which is a different time on its own clock.
  • Every time the solution shows is the primary machine's time: NextReboot, LastReboot and the other times in cPVAL Auto Reboot Status and Auto Reboot Management Status, the times in cPVAL Auto Reboot Failure and the failure ticket. The TimeZone column of the status table and the end of each failure show which time zone that is, for example Eastern Standard Time (UTC-05:00).

To restart a device at a time on its own clock, convert that time into the primary machine's time zone and select the converted day and time. A converter such as timeanddate.com gives the matching time: enter the device's time zone and restart time, and add the primary machine's time zone.

For example, with the primary machine in US Eastern time:

Device Time ZoneRestart Wanted (Device Time)Select (Primary Machine Time)
US PacificMonday 23:30Tuesday 02:30
US CentralSunday 02:00Sunday 03:00
IndiaSunday 02:00Saturday 15:30 (16:30 while the US is on daylight saving time)
note
  • Check the day. When the conversion crosses midnight, select the converted day too, as in the Pacific and India examples.
  • Check the week. With a week of the month selected, the converted day can fall in another week. For example, the day after the 2nd Tuesday can fall on the 15th, which is week 3.
  • Daylight saving time. Time zones that change their clocks on different dates, or don't change them at all, are an hour further apart for part of the year. Check the conversion for both seasons, and pick a time that works for both if it matters.
  • One time zone per client. Set the converted time at the level the time zone applies to, usually the organization or location, so every device under it gets the right time.

Prerequisites​

  • An API application with the Client Credentials grant type and the Monitoring and Management scopes, with its credentials in cPVAL Ninja API Client ID and cPVAL Ninja API Client Secret. The application created for WYSIWYG Custom Field Report - Organization and Global KB can be reused.
  • One Windows device that's always online, such as a server, to run the two scheduled automations.
  • The NinjaOne Documentation app, for the report as Knowledge Base articles. Without it, the report is saved as CSV files.
  • ConnectWise Manage connected to NinjaOne, for failure tickets only.

Associated Content​

Custom Fields: Settings​

Set these at the organization, location or device level. They appear on the Auto Reboot Management tab of organizations and locations. On devices, the Auto Reboot Management - Servers tab shows the server fields and the Auto Reboot Management - Workstations tab shows the workstation fields.

NameLevelTypePurpose
cPVAL Auto RebootOrganization, Location, DeviceDrop-downWhich Windows devices are restarted: Windows, Windows Workstations, Windows Servers or Disabled.
cPVAL Auto Reboot DaysOrganization, Location, DeviceMulti-selectThe days of the week to restart on.
cPVAL Auto Reboot TimeOrganization, Location, DeviceDrop-downThe restart time, on the hour or half hour.
cPVAL Auto Reboot Week ServerOrganization, Location, DeviceDrop-downThe week of the month servers restart in.
cPVAL Auto Reboot Week WorkstationOrganization, Location, DeviceDrop-downThe week of the month workstations restart in.
cPVAL Auto Reboot Include DCOrganization, Location, DeviceDrop-downIncludes domain controllers.
cPVAL Auto Reboot Include Hyper-V HostOrganization, Location, DeviceDrop-downIncludes Hyper-V hosts.
cPVAL Auto Reboot Maint Minutes ServerOrganization, Location, DeviceIntegerMaintenance mode minutes around a server restart.
cPVAL Auto Reboot Maint Minutes WorkstationOrganization, Location, DeviceIntegerMaintenance mode minutes around a workstation restart.
cPVAL Auto Reboot Pending Check ServerOrganization, Location, DeviceDrop-downRestarts servers only when a reboot is pending.
cPVAL Auto Reboot Pending Check WorkstationOrganization, Location, DeviceDrop-downRestarts workstations only when a reboot is pending.
cPVAL Auto Reboot Failure TicketOrganization, Location, DeviceDrop-downThe device types that get a ticket when a restart fails.

Custom Fields: Status​

Written by the solution on each device. They appear on both device tabs.

NameLevelTypePurpose
cPVAL Auto Reboot StatusDeviceWYSIWYGThe effective schedule, next restart and result of the last restart.
cPVAL Auto Reboot FailureDeviceTextThe latest failed restart. Read by the reboot failure compound conditions.
cPVAL Auto Reboot Scheduled ForDeviceTextThe restart request and the device's outcome. Read by the reboot trigger compound conditions.

Custom Fields: API Credentials​

These existing fields are shared with other ProVal reporting automations.

NameLevelTypePurpose
cPVAL Ninja API Client IDSystemSecureClient ID of the client credentials API application.
cPVAL Ninja API Client SecretSystemSecureClient Secret of the client credentials API application.

Custom Field Tabs​

The fifteen custom fields appear on these tabs, in this order.

Organization and Location Tab​

Organization and Location Tab

Device Tab [Windows Servers]​

Device Tab Windows Servers

Device Tab [Windows Workstations]​

Device Tab Windows Workstations

Automations​

NamePurpose
Auto Reboot ManagementRequests the restarts, schedules maintenance mode, verifies restarts and records the status of every device. Run every hour by the scheduled task.
WYSIWYG Custom Field Report - Organization and Global KBPublishes cPVAL Auto Reboot Status as the status report. Run every hour by the scheduled task, right after Auto Reboot Management.
Auto Reboot Management - Reboot DetectionDetection script of the reboot trigger compound conditions.
Auto Reboot Management - Reboot MachineSchedules the restart on the device. Run by the reboot trigger compound conditions.
Auto Reboot Management - Failure DetectionDetection script of the reboot failure compound conditions.

Scheduled Task​

NamePurpose
Auto Reboot ManagementRuns Auto Reboot Management and then WYSIWYG Custom Field Report - Organization and Global KB every hour, at 5 minutes past the hour, on one primary machine.

Monitors​

NameTypePurpose
Auto Reboot Management - Reboot Trigger [Windows Servers]Compound ConditionRuns Auto Reboot Management - Reboot Machine on servers with a pending restart request. Checks every 6 minutes.
Auto Reboot Management - Reboot Trigger [Windows Workstations]Compound ConditionRuns Auto Reboot Management - Reboot Machine on workstations with a pending restart request. Checks every 6 minutes.
Auto Reboot Management - Reboot Failure [Windows Servers]Compound ConditionOpens a ticket for servers whose restart failed, when ticketing is enabled for servers. Optional.
Auto Reboot Management - Reboot Failure [Windows Workstations]Compound ConditionOpens a ticket for workstations whose restart failed, when ticketing is enabled for workstations. Optional.

Ticket Template​

NamePurpose
Auto Reboot FailureSets how the ConnectWise Manage ticket for a failed restart is created and closed. Optional.

Audit Report​

NamePurpose
Auto Reboot Management StatusLists the schedule, next restart and last restart result of every enabled device, per client and for all clients.

Implementation​

Step 1: Set up the API application and credential fields​

Auto Reboot Management signs in to the NinjaOne API with a client credentials application. If cPVAL Ninja API Client ID and cPVAL Ninja API Client Secret are already filled for another ProVal reporting automation, reuse them and check that the application has the Management scope, which the solution needs to write custom fields and schedule maintenance mode. Otherwise, create the application and the two fields as described in Steps 2 to 4 of WYSIWYG Custom Field Report - Organization and Global KB.

Step 2: Create the custom fields​

This solution uses 15 custom fields. You can create them in either of two ways. The cPVAL Ninja API Client ID and cPVAL Ninja API Client Secret fields from Step 1 aren't part of these 15.

Option A: Import Them From the ProVal NinjaRMM Field Sync Portal​

The NinjaRMM Field Sync portal creates every field in the target instance for you, with the correct type, scope, permissions, API access and custom tab already set. It's much faster than creating 15 fields by hand and avoids the most common setup mistakes.

  1. Sign in to the NinjaRMM Field Sync portal.
  2. Set the Source Instance to ProVal Dev.
  3. Open Filters and set the Custom Tab filter to these three tabs:
    • Auto Reboot Management
    • Auto Reboot Management - Servers
    • Auto Reboot Management - Workstations
  4. Confirm the field count reads 15 fields. If it doesn't, one of the three tab filters is missing.
  5. Set the Target Instance to the partner instance you're implementing in.
  6. Select all 15 fields and click Deploy Selected.

NinjaRMM Field Sync

note

Check the result before moving on. Confirm that all 15 fields are present and that each tab matches its reference screenshot:

cPVAL Auto Reboot Status, cPVAL Auto Reboot Failure and cPVAL Auto Reboot Scheduled For appear on both device tabs. A field on the wrong tab still works, but it makes the solution harder to configure later.

Option B: Create the Fields Manually​

If you'd rather create the fields by hand, or the portal is unavailable, create each one as described in its document. Set API access to Read/Write, and add the fields to the tabs listed in each document: Auto Reboot Management for organizations and locations, Auto Reboot Management - Servers for the Windows Server role and Auto Reboot Management - Workstations for the Windows Desktops and Laptops role.

Step 3: Create the automations​

Add the automations to the NinjaOne automation library with Run as set to System. Keep Auto Reboot Management - Reboot Machine under its exact name. Skip WYSIWYG Custom Field Report - Organization and Global KB if it already exists, and skip Auto Reboot Management - Failure Detection if you won't use failure tickets.

Step 4: Create the ticket template (optional)​

If you want a ticket when a restart fails, create the ticket template. Set the board, ticket type and other ticket settings to match your ConnectWise Manage setup.

Step 5: Create the compound conditions​

Add the reboot trigger compound conditions to the agent policies your Windows servers and workstations use, such as Windows Server Policy and Windows Workstation Policy. They're required: without them, no device acts on a restart request. Add the reboot failure compound conditions to the same policies if you created the ticket template.

Step 6: Create the scheduled task​

Create the scheduled task that runs the solution. It runs Auto Reboot Management and then WYSIWYG Custom Field Report - Organization and Global KB, one after the other, every hour at 5 minutes past the hour. Target one Windows device that's always online, such as a server: the primary machine. Every run covers the whole tenant, so one device is enough, and more devices would only repeat the work.

Set Instance URL in both automations to your NinjaOne instance, keep Schedule Interval Minutes at 60, and set the report automation as described in Auto Reboot Management Status. The task document explains each setting.

Step 7: Configure the schedule​

Select restart days and times in the primary machine's time zone. For a client in another time zone, convert them first as described in Time Zones.

Set cPVAL Auto Reboot, cPVAL Auto Reboot Days and cPVAL Auto Reboot Time at the organization level for each client that should restart automatically, then add the optional settings and any location or device exceptions. To try it first, enable a single test device: set cPVAL Auto Reboot to Windows on that device, today's day, and a time within the hour after the task's next run. For example, if the next run is at 09:05, select 09:30 or 10:00.

You'll know it worked when cPVAL Auto Reboot Status shows the device's schedule and next restart after the next run, cPVAL Auto Reboot Scheduled For shows Scheduled a few minutes after that run, the device restarts at the selected time, and cPVAL Auto Reboot Status shows Rebooted after the following run.

FAQ​

Q: What does this solution do?​

It restarts Windows workstations and servers on a schedule you set per client, location or device, confirms each restart, records the result on the device, and can open a ticket when a restart fails. A report shows the schedule and last result of every device.

Q: How does it compare to the ConnectWise Automate version?​

It follows the same rules as the Automate Auto Reboot Management solution, with these differences:

  • One custom field replaces the client, location and computer EDFs of each setting, because NinjaOne custom fields inherit from the level above.
  • The seven day checkboxes are one cPVAL Auto Reboot Days field, and the week is chosen as All Weeks or 1st Week to 5th Week.
  • Setting cPVAL Auto Reboot to Disabled on a device replaces the Do Not Auto Reboot EDF, and Windows on a device replaces the computer-level Enable Auto Reboot EDF.
  • Restart times are on the hour or half hour instead of every 15 minutes.
  • Restarts are verified from the device's last boot time, and failures can open a ticket.
  • The Auto Reboot Management Status report replaces the Auto Reboot Management dataview.

Q: Which devices does it support?​

Windows workstations and Windows servers with the NinjaOne agent, running Windows 10, Windows 11 or Windows Server 2012 R2 or later. Macs and Linux devices are never restarted.

Q: Do I have to create the 15 custom fields by hand?​

No. The NinjaRMM Field Sync portal can deploy all 15 into the target instance from the ProVal Dev source instance, with types, scopes, permissions and tabs already set. Creating them manually is still fully documented if you prefer it or the portal is unavailable. See Step 2.

Q: After importing the fields from the portal, is there anything to check?​

Yes. Confirm the count is 15 and that each field is on the expected tab in the expected order, using the reference screenshots for the Organization and Location, Windows Servers and Windows Workstations tabs.

Q: How do I set one schedule for a whole client?​

Set cPVAL Auto Reboot, cPVAL Auto Reboot Days and cPVAL Auto Reboot Time on the organization. Every location and device of that client inherits them unless it has its own value.

Q: How do I give one location or one device a different schedule?​

Set the field you want to change on that location or device. The most specific value wins, and the other fields keep inheriting from above. For example, set only cPVAL Auto Reboot Time on a location to move its restarts to another time while keeping the client's days.

Q: How do I exclude a single device?​

Set cPVAL Auto Reboot to Disabled on the device. It's never restarted, whatever its organization or location holds, and its status fields are cleared at the next run.

Q: How do I enable a single device when its client isn't enabled?​

Set cPVAL Auto Reboot to Windows on the device, and set cPVAL Auto Reboot Days and cPVAL Auto Reboot Time on it if the levels above don't. A domain controller or Hyper-V host also needs cPVAL Auto Reboot Include DC or cPVAL Auto Reboot Include Hyper-V Host set to Enabled.

Q: Why don't the days selected at the organization and the location add up?​

cPVAL Auto Reboot Days is one field, so the days selected at the most specific level replace those above it. If a location needs Saturday and Sunday while the organization uses Sunday, select both days on the location.

Q: How does the week of the month work?​

Week 1 holds days 1 to 7 of the month, week 2 days 8 to 14, and so on. 2nd Week with Tuesday restarts on the second Tuesday of the month. Week 5 holds days 29 to 31, so 5th Week skips months in which the selected day doesn't reach day 29. All Weeks restarts every week.

Q: Why do servers and workstations have separate fields?​

Servers usually need a different week, maintenance window and pending reboot rule than workstations. The week, maintenance mode and pending check fields each have a server and a workstation version, and each device reads only its own version. That's also why device tabs show only the fields for their type.

Q: Why are restart times only on the hour or half hour?​

NinjaOne can't run a scheduled task more often than every hour, so the Auto Reboot Management task runs at 5 minutes past each hour and requests every restart due before its next run. The device needs a few minutes to pick up a request, and the user needs time to save their work, so every restart must be requested well ahead. A restart on the hour is requested about 55 minutes ahead and one on the half hour about 25 minutes ahead. A time such as :15 would get only about 10 minutes, so the field offers only :00 and :30.

Q: Which time zone are the restart times in?​

The time zone of the primary machine that runs Auto Reboot Management. The request is stored in UTC, so a device in another time zone restarts at the same moment. For example, with the primary machine in US Eastern time and a restart time of 02:00, a device in US Pacific time restarts at 23:00 on its own clock, the evening before.

Q: Our clients are in different time zones. What should we do?​

Convert each client's restart day and time into the primary machine's time zone and select the result at the organization or location level. For example, to restart a Pacific client on Monday at 23:30 its time with an Eastern primary machine, select Tuesday and 02:30. A converter such as timeanddate.com gives the matching time. See Time Zones for more examples and what to check.

Q: Which time zone are the times in the report, the status field and tickets?​

The primary machine's time zone, whatever the device's own time zone. The TimeZone column of the status table shows it, and each failure, and so each failure ticket, ends with it, for example Time zone: Eastern Standard Time (UTC-05:00).

Q: What happens if the primary machine moves to another time zone?​

Every schedule moves with it, because the selected times are read in the primary machine's time zone. If you replace the primary machine, pick one in the same time zone, or convert every selected time to the new time zone.

Q: How much warning do users get, and can they postpone the restart?​

The device schedules its restart within a few minutes of the request, so the user sees a Windows notice with the restart time about 50 minutes ahead of a restart on the hour, and about 20 minutes ahead of a restart on the half hour. Users can't postpone it. Windows closes open applications at the restart time, so unsaved work is lost.

Q: Why are domain controllers and Hyper-V hosts excluded?​

Restarting a domain controller can interrupt sign-ins and name resolution, and restarting a Hyper-V host stops every virtual machine on it. They're excluded so a server schedule never restarts them by accident. Set cPVAL Auto Reboot Include DC or cPVAL Auto Reboot Include Hyper-V Host to Enabled to include them, ideally on their own schedule at the device level.

Q: How does the pending reboot check work?​

When cPVAL Auto Reboot Pending Check Server or cPVAL Auto Reboot Pending Check Workstation is Enabled, a device restarts only when NinjaOne reports that it's waiting for a reboot, for example after updates. The state comes from the last data the NinjaOne agent sent, so a reboot that became pending in the last few minutes may not be seen until the next scheduled restart. A skipped restart shows Skipped - No Pending Reboot in cPVAL Auto Reboot Status.

Q: What does maintenance mode do, and when?​

It suppresses NinjaOne alerts and tasks on the device from 5 minutes before the restart time until the number of minutes in cPVAL Auto Reboot Maint Minutes Server or cPVAL Auto Reboot Maint Minutes Workstation after it, so the restart doesn't raise offline alerts. 0 turns it off, and 1 to 14 apply 15 minutes. It's scheduled only for devices whose restart is requested.

Q: What happens to a device that's offline at its restart time?​

If the device is offline when the Auto Reboot Management task requests its restart, 25 to 55 minutes ahead, no request is written and no maintenance mode is scheduled. The result is Skipped - Offline right away, and the device restarts at its next scheduled time. Skipped restarts aren't failures, so no ticket is created.

If the device was online when the request was written and then goes offline, the request stays in cPVAL Auto Reboot Scheduled For. If it comes back before the restart time, it restarts as scheduled. If it comes back later, it records the restart as missed and doesn't restart, so nobody's computer restarts without notice.

Q: A device was offline at the run but came online before its restart time. Why didn't it restart?​

The request is written only at the run before the restart, and the device was offline then, so it was skipped. It restarts at its next scheduled time. To restart it now, restart it manually.

Q: How do I cancel one upcoming restart?​

Before the device acts on the request, clear cPVAL Auto Reboot Scheduled For on the device. Once the field shows Scheduled, the restart is counting down in Windows; cancel it on the device with shutdown /a, for example from a NinjaOne remote command. To stop future restarts as well, set cPVAL Auto Reboot to Disabled on the device.

Q: Will a manual restart or a patching restart affect the schedule?​

No. The solution only checks that the device started after its restart was requested. If the device restarted for another reason in that window, the scheduled restart is still confirmed as Rebooted.

Q: How do I know a restart actually happened?​

Open the device's Auto Reboot Management tab. cPVAL Auto Reboot Status shows Rebooted in RebootResult once the device's last boot time is later than the request, usually at the first run of the scheduled task after the restart. The Auto Reboot Management Status report shows the same for every device.

Q: What do the RebootResult values mean?​

ValueMeaning
Awaiting RebootRequested; the restart time hasn't passed by 30 minutes yet.
RebootedThe device restarted.
Not RebootedThe device scheduled the restart but didn't restart.
Not Confirmed - OfflineThe device scheduled the restart and hasn't come back online.
Not Picked UpThe device was online but never acted on the request.
Failed - On DeviceThe device couldn't schedule the restart.
Skipped - OfflineThe device was offline when its restart was due, so no request was written.
Skipped - MissedThe device received the request after the restart time.
Skipped - CancelledThe request was cleared before the restart.
Skipped - No Pending RebootNo reboot was pending and the check applied.

Not Rebooted, Not Confirmed - Offline, Not Picked Up and Failed - On Device are failures and are written to cPVAL Auto Reboot Failure.

Q: A device shows Not Picked Up. What should I check?​

The device was online but never ran Auto Reboot Management - Reboot Machine. Check these:

  1. The device's agent policy includes Auto Reboot Management - Reboot Trigger [Windows Servers] or Auto Reboot Management - Reboot Trigger [Windows Workstations].
  2. Auto Reboot Management - Reboot Detection and Auto Reboot Management - Reboot Machine exist under those exact names and run as System.
  3. cPVAL Auto Reboot Scheduled For allows Automations to read and write it.
  4. The device's activity log doesn't show the compound condition or the automation failing.

Q: A device shows Not Rebooted. Why?​

The device scheduled the restart but was still running 30 minutes later. Usually someone cancelled the restart with shutdown /a, or the device was in a state where Windows couldn't restart. The LastOutcome column and the device's activity log show when the restart was scheduled. The next scheduled restart is requested as usual.

Q: A device shows Not Confirmed - Offline. Is that a problem?​

The device scheduled the restart and hasn't reported to NinjaOne since. It may simply be powered off after the restart, or it may not have started again. When it comes back online, the result changes to Rebooted and the failure is cleared. If it stays offline, check the device.

Q: How do I get a ticket when a restart fails?​

Create the Auto Reboot Failure ticket template and the Auto Reboot Management - Reboot Failure [Windows Servers] and Auto Reboot Management - Reboot Failure [Windows Workstations] compound conditions, then set cPVAL Auto Reboot Failure Ticket to Windows, Windows Servers or Windows Workstations on the organizations that want tickets.

Q: Is a failure recorded when ticketing is turned off?​

Yes. The failure is always written to cPVAL Auto Reboot Failure and shown in cPVAL Auto Reboot Status and the report. cPVAL Auto Reboot Failure Ticket only decides whether a ticket is created.

Q: How is a failure ticket closed?​

When cPVAL Auto Reboot Failure is cleared, either by a later confirmed restart or by a technician, the compound condition resets and the ticket template closes the ticket. While the ticket is open, a repeated failure on the same device is added to it.

Q: Can I acknowledge a failure without waiting for the next restart?​

Yes. Clear cPVAL Auto Reboot Failure on the device. The ticket closes when the compound condition resets, and the field is written again only when a new failure occurs.

Q: Where do I see the restart status of all devices?​

In the Auto Reboot Management Status report: a Knowledge Base article per client and one for all clients, or CSV files on the primary machine. The Auto Reboot Management scheduled task refreshes it every hour, right after the restarts are requested and verified.

Q: Do I need the NinjaOne Documentation app?​

Only for the report as Knowledge Base articles. Without it, set Report Output to Local CSV Files in the report automation of the Auto Reboot Management scheduled task. Restarts, verification and tickets don't need it.

Q: Why does one scheduled task run both automations?​

NinjaOne runs the automations of a scheduled task one after the other, in the order they're listed. Running Auto Reboot Management first and WYSIWYG Custom Field Report - Organization and Global KB second means the report always shows the result of the run that just finished. Both automations read the whole tenant through the API and change nothing on the device they run on, so one device is enough.

Q: What happens if the primary machine is offline?​

The runs it misses don't happen, so restarts due in the next hour aren't requested and those devices restart at their next scheduled time. Requests already written are still carried out by the devices. Use an always-on server as the primary machine, and alert on failed runs of Auto Reboot Management.

Q: Which API application does the solution use, and why not a technician's API token?​

It uses the client credentials application in cPVAL Ninja API Client ID and cPVAL Ninja API Client Secret, which doesn't expire. The NinjaOne API runs scripts on a device only with a technician's token, which must be authorized again every 30 days, and it offers no scheduled restart. Writing the request to a custom field and letting the device schedule its own restart needs only the client credentials application.

Q: The automation fails with "No custom field named ... exists" or a type mismatch. What should I check?​

One of the fifteen custom fields is missing, has a different name or type, doesn't include Device in its definition scope, or doesn't allow API access. Compare it with its document, then run the automation again. The run stops before changing anything in this case.

Q: The automation fails at authentication. What should I check?​

Check that both credential fields are filled, that Instance URL matches your NinjaOne region, and that the API application has the Client Credentials grant type and the Monitoring and Management scopes. If the secret was regenerated, update cPVAL Ninja API Client Secret.

Q: How long does a settings change take to apply?​

Until the next run of the Auto Reboot Management scheduled task, within an hour. A restart already requested keeps its time; clear cPVAL Auto Reboot Scheduled For on the device if it must not happen.

Q: Why does the scheduled task start at 5 minutes past the hour?​

Each run requests the restarts due before the next run. Starting at 5 past leaves a margin when a run starts a little late: a restart on the hour is still ahead of the run and is requested about 55 minutes in advance. A task starting exactly on the hour could miss that hour's restart if it started a few seconds late.

Q: Can I change the schedule of the scheduled task?​

Every hour is the shortest interval NinjaOne allows, and it's the recommended one. To run it every 2 hours instead, set Recur every to 2 hours and Schedule Interval Minutes to 120, so each run requests every restart due before the next one. Restarts are then requested up to 2 hours ahead, and settings changes take up to 2 hours to apply. Keep the start time at 5 minutes past the hour.

Changelog​

2026-11-11​

  • Initial version of the document