Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

ENUMLOCALGROUP( )

Action: Enumerates the local groups of which the current user is a member.
 
Syntax: ENUMLOCALGROUP (Index)
 
Parameters: Index

A numeric value representing the group whose name you want to discover (where 0 is the first subkey).

Source

Optional string value representing the server or domain whose local groups you want to query.

Remarks: Local group membership in the logondomain can be enumerated using ENUMGROUP. EnumLocalGroup is intended for local groups in other domains or on member servers.
 
Returns:
String Local group name
Error code Function failed.
 
See Also: EnumGroup( ), InGroup( )
 
Examples:

$Index = 0
DO
  $Group = ENUMLOCALGROUP($Index)
  $Index=$Index+1
UNTIL Len($Group) = 0

$Index = 0
DO
  $Group = ENUMLOCALGROUP($Index, "\\MyServer")
  $Index=$Index+1
UNTIL Len($Group) = 0