Skip to content

UsrMgr_EnumLocalGroups

Enumerates the local groups on the computer.

UsrMgr_EnumLocalGroups() As Boolean

Result will be stored in gaValue as an array of group names. If no groups are found, gaValue is an empty array.

If bStatus Then bStatus = UsrMgr_EnumLocalGroups()
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

UsrMgr_CreateLocalUser UsrMgr_CreateLocalGroup Constants Package Property Variables