GroupMembers

ActiveX/VBSScript registry editor  ActiveX NT User account manager  Export MDB/DBF from ASP
Url replacer, IIS url rewrite Active LogFile  Email export  ActiveX/ASP Scripting Dictionary object
 IISTracer, real-time IIS monitor
 Huge ASP upload - upload files with progress.
          Class 
          Member of  UserManager Use GroupMembers object 

Description

Contains methods for enumerating and selecting user accounts from the group.

Object model

GroupMembers - Contains methods for enumerating and selecting user accounts from the group. (Members property, Members that belongs to the group.)
 
User - Properties of the user account, and methods for creating, deleting and selecting users. (Item property, Returns one group member.)
 
 
RasUser - RAS privileges and call-back phone number for the user. (Ras property, Enables setting of the RAS privileges and call-back phone number for the user.)
 
 
Groups - Contains methods and properties for enumerating groups. (Groups property, Get a list of groups that an NT user belongs to .)
 
 
Groups - Contains methods and properties for enumerating groups. (LocalGroups property, List of local groups to which a specified user belongs.)
 
Group - Object for managing local or global group. (Item property, Returns one group member.)

Methods

Add Adds a member to the group.
SelectGroup Selects another group.

Properties

CountCount of the users in the group.
Long, RO
GroupGroup for the object.
Group, RO
ItemReturns one group member.
Variant, RO
ItemsReturns all group members in the collection as an safearray.
Variant, RO
ServerRemote server for the object.
Server, RO

Examples

 Enumerate all groups and accounts  
  Dim Server, Group, Member
  
  Set Server = CreateObject("UserManager.Server")
  Server.Select ""
  For Each Group In Server.Groups
    Debug.Print Group.Name
    For Each Member In Group.Members
      If IsObject(Member) Then
        Debug.Print Group.Name, ",", Member.Name
      Else
        Debug.Print Group.Name, ",", Member
      End If
    Next
  Next Group

Used in

  Other links for GroupMembers class

ActiveX UserManager classes

UserManager

Easy to use classes to create, delete and manage local and remote user accounts, groups, servers and domains in the Windows NT (2000/XP) environment. Simple work with user accounts and groups from VBA, VBS/JS, ASP and T-SQL.
  Additional notes
GroupMembers uses NetLocalGroupGetMembers or NetGroupGetUsers to enumerate group members.

© 1996 – 2006 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 2.03.68