UsrMgr_ChangePassword
Description
Section titled “Description”Changes the password for a local user. The function fails if the user doesn’t exist.
If you set sPassword to *, the function uses 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_ChangePassword(sUserName, sPassword) As Boolean
Parameters
Section titled “Parameters”sUserName (String)
Section titled “sUserName (String)”Name of the local user. The name isn’t case sensitive.
sPassword (String)
Section titled “sPassword (String)”New password for the user, or * to use the stored encrypted password.
Example
Section titled “Example”If bStatus Then bStatus = UsrMgr_ChangePassword("Administrator", "*")Related functions
Section titled “Related functions”UsrMgr_CreateLocalUser UsrMgr_SetLocalUserProperties UsrMgr_AddUserToLocalGroup Constants Package Property Variables