UsrMgr_CreateLocalUser
Description
Section titled “Description”Creates a user on the local computer.
If a user with the same name already exists, the function logs The user already exists and returns True. It doesn’t change the existing user’s password, full name or description. To change them, use UsrMgr_ChangePassword and UsrMgr_SetLocalUserProperties.
Use * as the password to use the encrypted password stored on the computer for the user name. See Using passwords in CapaInstaller VB Scripting Library. If no encrypted password is stored for that user name, the function fails.
Syntax
Section titled “Syntax”UsrMgr_CreateLocalUser(sUserName, sFullName, sPassword, sDescription) As Boolean
Parameters
Section titled “Parameters”sUserName (String)
Section titled “sUserName (String)”The name of the User
sFullName (String)
Section titled “sFullName (String)”The user’s full name
sPassword (String)
Section titled “sPassword (String)”The user’s password, or * to use the stored encrypted password
sDescription (String)
Section titled “sDescription (String)”A description of this user
Example
Section titled “Example”If bStatus Then bStatus = UsrMgr_CreateLocalUser("Username", "Full name", "*", "Description")Related functions
Section titled “Related functions”UsrMgr_CreateLocalGroup UsrMgr_AddUserToLocalGroup Constants Package Property Variables