# Job_RebootWS

> Reboot workstation. In order for this function to work properly the script needs to be executed by an Agent that can do the actual reboot.

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

### Description

Reboot workstation. In order for this function to work properly the script needs to be executed by an Agent that can do the actual reboot

Note: This function is only supported from computer context

### Syntax

Job_RebootWS(sMsg) As Boolean

### Parameters

#### sMsg (String)

Message to show user before reboot

### Example

**VBScript**

```vb
If bStatus Then bStatus = Job_RebootWs("Reboot needed in order to complete installation") 
```

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

### Related functions

[Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
