UsrMgr_EnumLocalUsers

Description

Enumerates local users

 

Syntax

UsrMgr_EnumLocalUsers() As Boolean

 

Return value

Result will be stored in gaValue

Example

VBScript
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

 

Related functions

UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup