SQL Variables
These variables are available to all scripts and are pulled directly from the database.Look in the help file under "Database Views" for a full list.
- #vAgentConfiguration.agentTempDir# - The temp directory used by the agent on this system
- #vAgentConfiguration.machName# - Machine Name used for each agent
- #vAgentConfiguration.groupName# - Group Name used for each agent
Setting Multi Line Registry Values
When setting a REG_MULTI_SZ, use \0 as a new-line delimiter.
For example, if you wanted to set a value to the following
bowser mrxsmb10 nsi
Then you'd use the following: bowser\0mrxsmb10\0nsi
Getting a Datestamp
Execute Shell Command
Parameter 1 : cscript #vAgentConfiguration.agentTempDir#\datestamp.vbs #vAgentConfiguration.agentTempDir#\datestamp.txt
Parameter 2 : 0
OS Type : 0
Get Variable
Parameter 1 : 1
Parameter 2 : #vAgentConfiguration.agentTempDir#\datestamp.txt
Parameter 3 : datestamp
OS Type : 0
Delete File
Parameter 1 : #vAgentConfiguration.agentTempDir#\datestamp.txt
OS Type : 0
