ActiveX UserManager

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.
          Library  Other libraries, changes (revision history), About prices and registration 

Description of ActiveX 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.

Links

License

Compatibility notes.

      ActiveX UserManager was designed to work with Windows NT 4.0. The library uses standard Win32 interface, so it can work on any versions of Windows NT 3.1/3.51, Windows NT 4.0, Windows 2000, Windows 2003 and Windows XP. You can use it on workstation, server or advanced server versions.
      ActiveX UserManager does not work with Windows 95/98/ME.

Features

User account and group manipulation

  • Add and remove users and groups
  • Add and remove user from a group

Enumaration

  • Domain servers enameration
  • Local and global group enameration
  • User enameration
  • Group members and user groups enumeration

User account properties

Other

  • LogonUser / RevertToSelf (logon/logout and impersonate user in script)
  • Manage accounts on local or remote server (see Select)
  • Works with any VBA (VBA 5, VBA 6, VB.Net, Word, Excel, Access, ...), script environments (VBScript and Jscript in ASP, ASP.Net, WSH) and C#.

Object model

Domain - Domain class.
 
Users - Collection of user accounts (Domain/Server accounts), (Users property, Collection of domain users.)
 
Servers - WindowsNT servers that are visible in the domain. (Servers property, Collection of servers that are visible in the specified domain.)
 
 
Server - Properties of servers, enumerating users, logon/logoff to the user administrator account. (Item property, Returns one server from the collection.)
 
   
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)
 
   
Users - Collection of user accounts (Domain/Server accounts), (Users property, Collection of User objects from the server.)
 
Groups - Contains methods and properties for enumerating groups. (Groups property, Collection of domain groups.)

ActiveX UserManager classes

Domain Domain class.
Group Object for managing local or global group.
GroupMembers Contains methods for enumerating and selecting user accounts from the group.
Groups Contains methods and properties for enumerating groups.
RasUser RAS privileges and call-back phone number for the user.
Server Properties of servers, enumerating users, logon/logoff to the user administrator account.
Servers WindowsNT servers that are visible in the domain.
User Properties of the user account, and methods for creating, deleting and selecting users.
Users Collection of user accounts (Domain/Server accounts),

ActiveX UserManager enums

GroupAttributes The list of attributes of a group
LogonProviders Specifies the logon provider - Logon Support APIs.
LogonTypes Specifies the type of logon operation to perform.
OperatorPrivileges The user's operator privileges.
RasPrivileges Indicates the user’s call-back privilege.
ServerTypes The list of Server types.
SIDNameUse contains values that specify the type of a security identifier (SID). Win32 SID_NAME_USE.
UserFlags The list of User Flags
UserPrivileges The list of User Privileges
UsersFilter The list of Users Filter

Examples

 Unlock account  
Dim Server

Set Server = CreateObject("UserManager.Server")
Server.Users("Coll").LockOut = False
 Simple User add  
Dim Server, User 

Set Server = CreateObject("UserManager.Server")
Set User = Server.Users.Add("Coll", "Password")
User.FullName = "Mr. Alex Coll"
 List of groups that 'Administrator' belongs to  
Dim S, Group
Set S = CreateObject("UserManager.Server")
For Each Group In S.Users("administrator").Groups
    Debug.Print "<br>" & Group.Name & "," & Group.Comment
Next
 Sample ASP page  
 Manage users with SQL server  

XML/PAD
All samples
© 1996 – 2006 Antonin Foller, Motobit Software, help{at}pstruh.cz, help v. 2.03.68