Groups

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 Groups object 

Description

Contains methods and properties for enumerating groups.

Object model

Groups - Contains methods and properties for enumerating groups. (Groups property, Collection of global groups)
 
Group - Object for managing local or global group. (Item property, Returns specified group from collection.)
   
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.)
Groups - Contains methods and properties for enumerating groups. (LocalGroups property, Collection of local groups objects)
Groups - Contains methods and properties for enumerating groups. (Groups property, Collection of domain groups.)
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.)

Methods

Add Adds a new group to the server.
SelectServer Selects server and group type.

Properties

CountCount of the groups.
Long, RO
ItemReturns specified group from collection.
Group, RO
ItemsReturns all groups in the collection as an safearray.
Variant, RO
ServerRemote server for the object.
Server, RO

Examples

 Enumerate all groups and accounts  
  Set Server = CreateObject("UserManager.Server")
  Server.Select ""
  For Each Group In Server.Groups
    Debug.Print Group.Name
    For Each User In Group.Users
      Debug.Print Group.Name, ",", User.Name
    Next User
  Next Group

Used in

  Other links for Groups 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.

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