Auto Reboot Management - Failure Detection
Overview
This automation is the detection script of the Auto Reboot Management - Reboot Failure [Windows Servers] and Auto Reboot Management - Reboot Failure [Windows Workstations] compound conditions. It reads cPVAL Auto Reboot Failure and cPVAL Auto Reboot Failure Ticket on the device. It exits with 1 and a line beginning with Detected:, followed by the failure, when a failed restart is recorded and ticketing covers the device type. The compound condition then creates a ticket with the failure in it. The times in the failure are in the time zone of the primary machine that runs Auto Reboot Management, which the failure ends with, not the device's own time zone. The automation makes no changes.
The compound conditions run this automation every 30 minutes, so you don't need to run it yourself. It exits with 0 when no failure is recorded or ticketing isn't enabled for the device type, and with 2 when a custom field can't be read.
Requirements
- Windows 10, Windows 11, or Windows Server 2012 R2 or later
- Run As:
System - PowerShell 5.1
Sample Run

Scenarios
- Failure with ticketing enabled: cPVAL Auto Reboot Failure holds a failure and cPVAL Auto Reboot Failure Ticket is
Windows, orWindows Serverson a server, orWindows Workstationson a workstation. The automation exits with1and reports the failure. - Failure with ticketing disabled: the failure is recorded, but the ticketing field is
Disabled, blank, or set for the other device type. The automation exits with0and reports why no ticket is needed. - No failure: cPVAL Auto Reboot Failure is empty. The automation exits with
0.
Custom Fields
| Custom Field | Scope | Type | Description |
|---|---|---|---|
| cPVAL Auto Reboot Failure | Device | Text | Read for the latest failed restart. |
| cPVAL Auto Reboot Failure Ticket | Organization, Location, Device | Drop-down | Read, with inheritance, for the device types that get a ticket. |
Dependencies
- Custom Field: cPVAL Auto Reboot Failure
- Custom Field: cPVAL Auto Reboot Failure Ticket
- Compound Condition: Auto Reboot Management - Reboot Failure [Windows Servers]
- Compound Condition: Auto Reboot Management - Reboot Failure [Windows Workstations]
- Ticket Template: Auto Reboot Failure
- Solution: Auto Reboot Management - NinjaOne
Automation Setup/Import
Output
- Activity Details
Changelog
2026-11-11
- Initial version of the document