# Service_SetLogonInformations

> Logon as Local systems specify a "dot" as username.

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

### Description

Logon as Local systems specify a "dot" as username   
If bStatus Then bStatus=Service_SetLogonInformations("Capa Agent",".","Localsystem","")   
  
If you specify "\*" in the password field, CapaInstaller will assume that the password for the specified user has been encrypted by CapaInstaller and saved in registry. The password will then be obtained and decrypted.   
This way you can avoid using clear text passwords in the script.   
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

Service_SetLogonInformations(sServiceName, sDomain, sUserName, sPassword) As Boolean

### Parameters

#### sServiceName (String)

Name of service

#### sDomain (String)

Domain name for the specified user

#### sUserName (String)

Name of user to logon

#### sPassword (String)

Password for the user

### Example

**VBScript**

```vb
If bStatus Then bStatus = Service_SetLogonInformations("Capa Agent", ".", "LocalSystem", "") 
```

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

### Related functions

[Service_Create](/capainstaller/vb-scripting-library/service-functions/service-create/) [Service_SetStartMode](/capainstaller/vb-scripting-library/service-functions/service-setstartmode/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
