TestimoX

API Reference

Class

RebootState

Namespace ComputerX.Boot
Assembly ComputerX
Modifiers static

Detects whether a reboot is pending on a Windows computer via known registry locations.

Inheritance

  • Object
  • RebootState

Methods

public static Boolean IsRebootPending(String computerName = null) #
Returns: Boolean

Returns true when a reboot is pending, based on PendingFileRenameOperations, Windows Update, or CBS keys.

Parameters

computerName System.String = null optionalposition: 0
Hostname; null checks the local machine.
public static Boolean TryGetRebootPending(String computerName, out Boolean isPendingReboot, out String error) #
Returns: Boolean

Attempts to detect pending reboot state and preserves access failures explicitly.

Parameters

computerName System.String requiredposition: 0
Hostname; null checks the local machine.
isPendingReboot System.Boolean@ requiredposition: 1
True when a pending reboot signal was found.
error System.String@ requiredposition: 2
Operational error message when a required registry read failed.

Returns

true when detection completed with readable signals; false when access/runtime failures prevented reliable detection.