# UsrMgr_EnumLocalUsers

> Enumerates the local user accounts on the client and returns them as an array in gaValue.

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

### Description

Enumerates local users

### Syntax

UsrMgr_EnumLocalUsers() As Boolean

### Return value

Result will be stored in gaValue

### Example

**VBScript**

```vb
If bStatus Then bStatus = UsrMgr_EnumLocalUsers()
If bStatus And IsArray(gaValue) Then
  For index = LBound(gaValue) to UBound(gaValue)
    bStatus = Job_WriteLog("Custom", "Index #" & index & ": " & cStr(gaValue(index)), bStatus, True)
  Next
End If
```

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

### Related functions

[UsrMgr_CreateLocalUser](/capainstaller/vb-scripting-library/user-management-functions/usrmgr-createlocaluser/) [UsrMgr_CreateLocalGroup](/capainstaller/vb-scripting-library/user-management-functions/usrmgr-createlocalgroup/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
