Add

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.
          Method 
          Member of  UserManager.Users 

Description

Adds a user account and assigns a password and privilege level.

Syntax

Set NewUser = Users.Add (Name as String, Password as String, [Privilege as UserPrivileges = upUSER], [Flags as UserFlags = ufSCRIPT])
 
Where Type Optional Default Description
 Name  String     The name of the new user account. 
 Password  String     The password of the new user specified in the Name param. 
 Privilege  UserPrivileges  yes  upUSER  One of three values specifying the level of privilege assigned the usri1_name member. 
 Flags  UserFlags  yes  ufSCRIPT  Contains values that determine several features. 

Returns

User - Properties of the user account, and methods for creating, deleting and selecting users.

Examples

 Adds user account named "Coll" to the local server  
Set Users = CreateObject("UserManager.Users")
Set User = Users.Add("Coll", "Password")
User.FullName = "Mr. Alex Coll"

See also

  Other links for Add

Methods of Users class

Properties of Users class

UserManager.Users

Collection of user accounts (Domain/Server accounts),

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