MOTOBIT.COM - ASP upload, IIS utility Groups Class, Member of UserManager

Member of  UserManager Use Groups object | Changes | Purchase | Download

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

Server.LocalGroups, Server.Groups, User.Groups, Domain.Groups, User.LocalGroups

Other links for Groups class

ActiveX UserManager classes

User, Users, Group, Server, Groups, GroupMembers, RasUser, Servers, Domain

ActiveX UserManager enums

UsersFilter, GroupAttributes, UserFlags, UserPrivileges, ServerTypes, LogonTypes, LogonProviders, OperatorPrivileges, RasPrivileges, SIDNameUse

UserManager

ActiveX UserManager is easy to use COM component with classes to create, delete and manage local and remote user accounts, groups, servers and domains in the Windows NT (2000/XP) environment. You can simple work with user accounts and groups from VBA, VBS/JS, ASP and T-SQL programming environment.

© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz