Skip to content

UsrMgr_ChangePassword

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.

UsrMgr_ChangePassword(sUserName, sPassword) As Boolean

Name of the local user. The name isn’t case sensitive.

New password for the user, or * to use the stored encrypted password.

If bStatus Then bStatus = UsrMgr_ChangePassword("Administrator", "*")

Scripting Guidelines

UsrMgr_CreateLocalUser UsrMgr_SetLocalUserProperties UsrMgr_AddUserToLocalGroup Constants Package Property Variables