Skip to content

Service_SetLogonInformations

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

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

Name of service

Domain name for the specified user

Name of user to logon

Password for the user

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

Scripting Guidelines

Service_Create Service_SetStartMode Constants Package Property Variables