Sys_PendingReboot
Description
Section titled “Description”Checks if Windows Update reports that the computer must restart to finish installing updates. Other reasons for a pending restart, for example a pending file rename after an installation, aren’t checked.
Syntax
Section titled “Syntax”Sys_PendingReboot() As Boolean
Return value
Section titled “Return value”Result will be stored in gbValue: True if a restart is pending, otherwise False.
Example
Section titled “Example”If bStatus Then bStatus = Sys_PendingReboot()If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)Related functions
Section titled “Related functions”Sys_IsFirewallEnabled Sys_IsFirewallPortOpen Constants Package Property Variables