Contains methods for enumerating and selecting user accounts from the group.
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.) |
Add | Adds a member to the group. | |
SelectGroup | Selects another group. |
Count | Count of the users in the group. |
Long, RO | |
Group | Group for the object. |
Group, RO | |
Item | Returns one group member. |
Variant, RO | |
Items | Returns all group members in the collection as an safearray. |
Variant, RO | |
Server | Remote server for the object. |
Server, RO |
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 |
User, Users, Group, Server, Groups, GroupMembers, RasUser, Servers, Domain
UsersFilter, GroupAttributes, UserFlags, UserPrivileges, ServerTypes, LogonTypes, LogonProviders, OperatorPrivileges, RasPrivileges, SIDNameUse
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.
GroupMembers uses NetLocalGroupGetMembers or NetGroupGetUsers to enumerate group members.
© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz