# Sys_PendingReboot

> The functions determines if the operating system has a pending reboot due to installed updates.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/system-functions/sys-pendingreboot/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

The functions determines if the operating system has a pending reboot due to installed updates

### Syntax

Sys_PendingReboot() As Boolean

### Return value

Result will be stored in gbValue

### Example

**VBScript**

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

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Sys_IsFirewallEnabled](/capainstaller/vb-scripting-library/system-functions/sys-isfirewallenabled/) [Sys_IsFirewallPortOpen](/capainstaller/vb-scripting-library/system-functions/sys-isfirewallportopen/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
