# UsrMgr_CreateLocalUser

> Creates a user on the local computer.

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

#### Description

Creates a user on the local computer   
Use \* as password if you want to use an already encrypted password specified by CapaInstaller.   
See more about the password encryption feature [Using passwords in CapaInstaller VB Scripting Library](/capainstaller/vb-scripting-library/using-passwords-in-capainstaller-vb-scripting-library/)

### Syntax

UsrMgr_CreateLocalUser(sUserName, sFullName, sPassword, sDescription) As Boolean

### Parameters

#### sUserName (String)

The name of the User

#### sFullName (String)

The Users full name

#### sPassword (String)

The Users password

#### sDescription (String)

A description of this user

### Example

**VBScript**

```vb
If bStatus Then bStatus = UsrMgr_CreateLocalUser("Username", "Full name", "Password", "Description") 
```

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

### Related functions

[UsrMgr_CreateLocalGroup](/capainstaller/vb-scripting-library/user-management-functions/usrmgr-createlocalgroup/) [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/)
