Script EditorThe Script Editor creates and maintains customizable scripts that perform specialized tasks on managed machines. A number of pre-defined scripts are distributed with the VSA. Additional pre-defined scripts can be downloaded from the Kaseya user forum. These scripts can be used as is or customized by administrators. Scripts can be maintained using the Script Editor or imported and exported as text files and edited in any text editor. Scripts are organized by three main statements:
Drop down lists provide the set of IF-THEN-ELSE parameters appropriate for each statement. Operating System Detect When writing a THEN-ELSE statement, you can select the operating system the script will execute on. This parameter is useful when you want to write one script that can be executed on different operating systems. For example, directory paths in Windows and Macintosh can require different directory path syntax in order to work correctly. Creating two separate script steps within the same script for Guidelines Use the following guidelines when constructing a script:
Using Variables Use variables to store values that can be referenced in multiple script steps. Variables are passed automatically to nested scripts.
Import Script... Click the Import Script... link to display the Import Script popup window. Click Browse... to select the text file to be imported. Click Import to load the script into the Script Editor. Note: Importing new scripts are always imported as private scripts. They can be shared or made public afterwards. Export Script... Click the Export Script... link to display the script in text format in the Export Script popup window. You can copy it to the clipboard or download it to a text file. Manage Files... Click the Manage Files... link to display the Manage Files Stored on Server popup window. Manage Variables... Click the Manage Variables... link to display the Variable Manager popup window. Take Ownership... You can't edit a public script you don't own. Click the Take Ownership link to display the Save, Rename... and Delete... buttons. Otherwise you can make a copy of the current script using the Save As... button. Share... You can share scripts you own with other individual administrators, administrator roles, or make the script public to all administrators. Note: A master administrator can take ownership of a script and change share rights. Save As... Select Save As... to save a script under a different name. The script name must be less than 64 characters in length. Save Select Save to save changes to a script. Rename Select Rename to rename a script. Delete Select Delete to delete a script. Script Notes Enter any notes about the script. | |||
Topic 194: Send Feedback. Download a PDF of this online book from the first topic in the table of contents. |