IF-ELSE-STEP Commands
The following is a summary of standard IF-ELSE-STEP commands used in VSA agent procedures.
IF Definitions |
|
Evaluates the given agent variable. See Using Variables. |
|
Adds an Else branch to run steps when an If branch returns a |
|
Compares a variable with a supplied value. |
|
Determines if the current Windows OS is 32 or 64-bit. |
|
Evaluates the total amount of memory reported by the latest audit of the agent. |
|
Evaluates the given registry value. |
|
Tests for the existence of the given registry key. |
|
Checks to see if a specified application is currently running on the managed machine. |
|
Determines if a service is running on the managed machine. |
|
Determines whether the user is either:
|
|
Tests whether a specific user, or any user, is logged in or not. |
|
Presents a Yes/No dialog box to the user. |
|
Tests for the existence of a file. |
|
Tests for the existence of a file in the current directory path returned by getDirectoryPathFromRegistry(). |
|
Always returns |
|
STEP Definitions |
|
Suppresses alarms on a machine for a specified number of minutes. |
|
Stops the suppression of alarms on a machine. |
|
Captures a desktop screenshot of the agent machine and uploads it to the Kaseya Server. |
|
Changes a domain user's membership in a domain user group. |
|
Changes a local user's membership in a local user group. |
|
Closes a running application. |
|
Adds a one-line comment to the procedure. |
|
Copies a file from one directory to another. |
|
Copies a file from one directory to another using a user credential. |
|
Adds a new user to an Active Directory domain when run on a domain controller. |
|
Creates an event log entry in either the Application, Security or System event log types. You can create a Warning, Error or Informational event with your own description. |
|
Adds a new local user account to a machine. |
|
Creates a new file share on a Windows machine. |
|
Deletes a directory from the agent machine. |
|
Deletes a file from the managed machine. |
|
Deletes file in directory returned by getDirectoryPathFromRegistry(). |
|
Deletes a key from the registry. |
|
Deletes a 64-bit key from the registry. |
|
Deletes a value from the registry. |
|
Deletes a 64-bit value from the registry. |
|
Deletes a user from the agent machine. |
|
Disables a user, preventing logon to the agent machine. |
|
Disables a Windows service. |
|
Enables a previously disabled user, allowing the user to logon to the OS. |
|
Executes any file as if it was run from the Run item in the Windows Start menu. |
|
Same as execute file. File location is relative to the directory returned by getDirectoryPathFromRegistry(). |
|
Executes a powershell file, or command with arguments or both. |
|
Executes a powershell file, or command with arguments or both, as a 32 bit system command. |
|
Executes a powershell file, or command with arguments or both, as a 32 bit user command. |
|
Executes a powershell file, or command with arguments or both, as a 64 bit system command. |
|
Executes a powershell file, or command with arguments or both, as a 64 bit user command. |
|
Starts another VSA agent procedure on the current machine. |
|
Runs any command from a command shell. |
|
Executes a shell command and returns output created during and after its execution to a variable. |
|
Runs a Vbscript, with or without command line arguments. |
|
Returns the directory path stored in the registry at the specified location. Result used in subsequent steps. |
|
Gets a file from the managed machine and saves it to the Kaseya Server. |
|
Gets a file from the managed machine located relative to the directory returned by getDirectoryPathFromRegistry() and saves it to the Kaseya Server. |
|
Returns the text and HTML contents of a URL and stores it to a file on the managed machine. |
|
Downloads a file from a given URL to a target folder and file for that agent. Uses the Patch Management > File Source settings. |
|
Gets a value from the agent on the managed machine and assigns it to a variable. See Using Variables. |
|
Generates a random number. |
|
Gets a variable that persists outside of the immediate procedure's execution. |
|
Reads up to three variables you have previously created using the getVariableUniversalCreate() step. |
|
Adds the current user to the local administrator’s group on the agent machine, either permanently or for a temporary period of time. |
|
Specifies the user account to use when executing a file or shell when Execute as the logged on user is specified in a subsequent command. |
|
Silently installs a package using the |
|
Silently installs a Debian package on any Linux OS that supports |
|
Silently installs a |
|
Installs an MSI file for Windows. |
|
Silently installs a |
|
Silently installs an RPM package on any Linux OS that supports installing RPMs. |
|
Automatically logs off the current user. |
|
Pauses the procedure for N seconds. |
|
Reboots the managed machine. |
|
Reboots a machine, displaying a warning message to the end-user before the reboot process occurs. |
|
Removes a file share from a Windows agent. |
|
Renames a file that is currently in use. |
|
Renames a file currently in use in directory returned by getDirectoryPathFromRegistry(). |
|
Schedules an agent procedure to run on a specified machine. |
|
Creates an alert based on a previous getVariable() command. |
|
Sends an email to one or more recipients. |
|
Displays a message in a dialog box on the managed machine. |
|
Opens a browser to the specified URL on the managed machine. |
|
Sets the registry value to a specific value. |
|
Sets the 64-bit registry value to a specific value. |
|
Returns a value from the database and stores it to a named variable by running a selected SQL "read" statement. |
|
Updates the database by running a selected SQL "write" statement. |
|
Runs a Start command for a Windows service, if it exists. |
|
Runs a Start command for a Windows service if it exists. |
|
Transfers a file from the agent machine running this step to another agent machine. |
|
Silently uninstalls a product based on its MSI GUID. |
|
Extracts the contents of a specified zip file to a target folder. |
|
Updates the selected System Info field with the specified value. |
|
Specifies that the agent credential should be used when Execute as the logged on user is specified in a subsequent command. |
|
Sets the Service Recovery Settings for any given service in Windows. |
|
Writes a directory from the server to the managed machine. |
|
Writes a file stored on the Kaseya Server to the managed machine. |
|
Transfers a file from another agent machine to the agent machine running this step. |
|
Writes a file stored on the Kaseya Server to the managed machine using the directory returned by getDirectoryPathFromRegistry(). |
|
Writes a string to the Agent Procedure Log. |
|
Writes text to a file on the agent machine. |
|
Compresses a directory and any subdirectories or files it contains into a zip file on the agent machine. |
|
Compresses a single file or files into a zip file on the agent machine. |