/
Job_LogoffEnduserInstallation
Job_LogoffEnduserInstallation
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
If bStatus Then bStatus=Job_LogOffEndUserInstallation()
Related functions
, multiple selections available,
Related content
$cs.Job_WriteLog
$cs.Job_WriteLog
More like this
$cs.Job_Start
$cs.Job_Start
More like this
Invoke-RunAsLoggedOnUser
Invoke-RunAsLoggedOnUser
More like this
CMS_RunSystemAgent
CMS_RunSystemAgent
More like this
Exit-PSScript
Exit-PSScript
More like this
$cs.Shell_ExecuteWithTimeout
$cs.Shell_ExecuteWithTimeout
More like this