# UsrMgr_ChangePassword

> Changes the password for a local User.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/user-management-functions/usrmgr-changepassword/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Changes the password for a local User.  
If sPassword is set to \* then it will use an encrypted password as described in Using passwords in CapaLib.  
sUserName is case sensitive and must be entered in same form as defined on the local computer.

### Syntax

UsrMgr_ChangePassword(sUserName, sPassword) As Boolean

### Parameters

#### sUserName (String)

Name of the local User

#### sPassword (String)

New password for the User

### Example

**VBScript**

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

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[UsrMgr_CreateLocalUser](/capainstaller/vb-scripting-library/user-management-functions/usrmgr-createlocaluser/) [UsrMgr_AddUserToLocalGroup](/capainstaller/vb-scripting-library/user-management-functions/usrmgr-addusertolocalgroup/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
