# UsrMgr_EnableLocalUserAccount

> Re-enables a local user account that has been locked.

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

### Description

Re-enables a local user account that has been locked

### Syntax

UsrMgr_EnableLocalUserAccount(sUserName) As Boolean

### Parameters

#### sUserName (String)

The name of the user

### Example

**VBScript**

```vb
If bStatus Then bStatus = UsrMgr_EnableLocalUserAccount("Username")
```

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

### Related functions

[UsrMgr_DisableLocalUserAccount](/capainstaller/vb-scripting-library/user-management-functions/usrmgr-disablelocaluseraccount/) [UsrMgr_CreateLocalGroup](/capainstaller/vb-scripting-library/user-management-functions/usrmgr-createlocalgroup/) [UsrMgr_AddUserToLocalGroup](/capainstaller/vb-scripting-library/user-management-functions/usrmgr-addusertolocalgroup/) [UsrMgr_SetLocalUserProperties](/capainstaller/vb-scripting-library/user-management-functions/usrmgr-setlocaluserproperties/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
