# Job_LogoffEnduserInstallation

> Defines that the user has to be logged off before script execution will continue.

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

### Description

Defines that the user has to be logged off before script execution will continue.  
   
Only the active user is being logged off. If multiple users are logged on to the same workstation, the Job will stop running.   
In order to circumvent this you can check to see if more than one user has an explorer.exe process opened before executing the command Job_LogOffEndUserInstallation  
  
Default behavior is to log off end user.  
To change default behavior set gbLogoffUserDefaultNo to true before calling Job_LogoffEnduserInstallation.

### Syntax

Job_LogOffEndUserInstallation() As Boolean

### Example

**VBScript**

```vb
If bStatus Then bStatus=Job_LogOffEndUserInstallation()
```

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

### Related functions

[Job_AttendedInstallation](/capainstaller/vb-scripting-library/job-functions/job-attendedinstallation/) [Job_SilentInstallation](/capainstaller/vb-scripting-library/job-functions/job-silentinstallation/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
