# Job_ActivateUserSetup

> When a Computer Job has a call for the Job_ActivateUserSetup a User script will be run the next time a new User logs into the Computer.

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

### Description

When a Computer Job has a call for the Job_ActivateUserSetup a User script will be run the next time a new User logs into the Computer. The User Job will run in the Users own context. sGUID is automatically generated by the CapaInstaller Package Creator when creating a script with this function.

### Syntax

Job_ActivateUserSetup(sJobName, sVersion, sGUID) As Boolean

### Parameter

#### sJobName (String)

Name of the Job

#### sVersion (String)

Version of the Job

#### sGUID (String)

Job id

### Example

**VBScript**

```vb
If bStatus Then bStatus = Job_ActivateUserSetup("<Job Name>_us.cis", "v1.0", "{<Insert Random Guid Here>}")

```

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

### Related functions

[https://www.guidgenerator.com/](https://www.guidgenerator.com/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
