MOTOBIT.COM - ASP upload, IIS utility UserAdd Method of User class

Method | Member of  UserManager.User | Changes | Purchase | Download

Description

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

Syntax

User.UserAdd (Name as String, Password as String, [ServerName 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. 
 ServerName  String  yes    Name of the remote server for the new user. 
 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. 

Remarks

      Only members of the Administrators or Account Operators local group can successfully execute UserAdd method.
      Only members of the Administrators local group can add an Administrators privilege account.
      This function is provided only for compatibility with old version of scripts. Please use Users.Add method.

See also

User.Delete, Users.Add

Other links for UserAdd

Methods of User class

AddToGroup, AddToLocalGroup, Delete, RemoveFromGroup, RemoveFromLocalGroup, UserAdd

Properties of User class

AuthFlags, BadPasswordCount, CodePage, Comment, CountryCode, Disabled, Expires, Flags, FullName, Groups, HomeDir, HomeDirDrive, ID, LastLogOff, LastLogon, LocalGroups, LockOut, LogonHours, MaxStorage, Name, NumOfLogons, Password, PasswordAge, PasswordCannotChange, PasswordExpired, PasswordNeverExpires, PasswordNotRequired, PrimaryGroupID, Privilege, Profile, Ras, ScriptPath, Server, UserComment, Workstations

UserManager.User

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

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