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

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


Collection of user accounts (Domain/Server accounts),

Object model

Users - Collection of user accounts (Domain/Server accounts), (Users property, Collection of domain users.)
Users - Collection of user accounts (Domain/Server accounts), (Users property, Collection of User objects from the server.)


Add Adds a user account and assigns a password and privilege level.
SelectServer Select the server and filter for Users collection


CountCount of users in the Users collection.
Long, RO
FilterSpecifies a filter of account types to enumerate.
UsersFilter, RO
ItemRetrieves one user account.
User, RO
ItemsReturns all users in the collection as an safearray.
Variant, RO
ServerRemote server for the Users collection.
Server, RO


Enumerating user accounts in one server

'Unlock all user accounts on the local computer
Set Users = CreateObject("UserManager.Users")
For Each User In Users
    User.LockOut = False

'Write names of all user accounts
Set Users = CreateObject("UserManager.Users")
Open "AllUsers" For Output As #1
For Each User In Users
  Print #1, User.Name, User.FullName, User.UserComment, User.Flags
Close #1

Used in

Server.Users, Domain.Users

Other links for Users 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


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: