# Sys_GetProcessOwner

> Returns owner of process.

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

### Description

Returns owner of process

### Syntax

Sys_GetProcessOwner(sProcess, bMustExist) As Boolean

### Parameters

#### sProcess (String)

Name of process

#### bMustExist (Boolean)

Process must exist

### Return value

Result will be stored in gsValue

### Example

**VBScript**

```vb
If bStatus Then bStatus = Sys_GetProcessOwner("CapaInstaller.exe", True)
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)
```

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

### Related functions

[Sys_WaitForProcess](/capainstaller/vb-scripting-library/system-functions/sys-waitforprocess/) [Sys_Sleep](/capainstaller/vb-scripting-library/system-functions/sys-sleep/) [Sys_KillProcess](/capainstaller/vb-scripting-library/system-functions/sys-killprocess/) [Sys_ExistProcess](/capainstaller/vb-scripting-library/system-functions/sys-existprocess/) [Sys_CompareProcessOwner](/capainstaller/vb-scripting-library/system-functions/sys-compareprocessowner/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
