Skip to content

Sys_PendingReboot

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.

Sys_PendingReboot() As Boolean

Result will be stored in gbValue: True if a restart is pending, otherwise False.

If bStatus Then bStatus = Sys_PendingReboot()
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

Sys_IsFirewallEnabled Sys_IsFirewallPortOpen Constants Package Property Variables