Service_SetLogonInformations
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 here
Â
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
If bStatus Then bStatus = Service_SetLogonInformations("Capa Agent", ".", "LocalSystem", "")
Â