Skip to main content

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.

note

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​

Image1

Scenarios​

  • Failure with ticketing enabled: cPVAL Auto Reboot Failure holds a failure and cPVAL Auto Reboot Failure Ticket is Windows, or Windows Servers on a server, or Windows Workstations on a workstation. The automation exits with 1 and 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 with 0 and reports why no ticket is needed.
  • No failure: cPVAL Auto Reboot Failure is empty. The automation exits with 0.

Custom Fields​

Custom FieldScopeTypeDescription
cPVAL Auto Reboot FailureDeviceTextRead for the latest failed restart.
cPVAL Auto Reboot Failure TicketOrganization, Location, DeviceDrop-downRead, with inheritance, for the device types that get a ticket.

Dependencies​

Automation Setup/Import​

Automation Configuration

Output​

  • Activity Details

Changelog​

2026-11-11​

  • Initial version of the document