You can create a script in an external XML editor and import it to the appliance.
Imported scripts must conform to the following structure:
• |
The root element <kbots></kbots> includes the URL of the KACE DTD "kbots xmlns="http://kace.com/Kbots.xsd">...<kbots> |
• |
One or more <kbot> elements. |
• |
• |
• |
The following is an example of the XML structure for an appliance script:
In the preceding example, the </config> element corresponds to the Configuration section on the Script Detail page. This element is where you specify the name of the policy or job (optional), and the script type (policy or job). Within this element you can also indicate whether the script can run when the target device is disconnected or logged off from the appliance.
You can import scripts to the appliance as needed.
1. |
a. |
Log in to the appliance Administrator Console, https://appliance_hostname/admin. Or, if the Show organization menu in admin header option is enabled in the appliance General Settings, select an organization in the drop-down list in the top-right corner of the page next to the login information. |
b. |
2. |
1. |
a. |
Log in to the appliance Administrator Console, https://appliance_hostname/admin. Or, if the Show organization menu in admin header option is enabled in the appliance General Settings, select an organization in the drop-down list in the top-right corner of the page next to the login information. |
b. |
2. |
The Run and Run Now commands enable you to run scripts on target devices immediately without setting a schedule.
Running scripts without setting a schedule is useful when:
To run Online KScripts, target devices must have an Agent connection to the appliance.
The Run Now command is available on these Administrator Console pages:
• |
Run Now and Script Detail pages: Running scripts from the Scripting > Run Now page enables you to run the selected script on target devices. |
• |
Scripts page: Running scripts from the Scripts page using the Run Now option in the Choose Action menu enables you to run multiple scripts at the same time. |
• |
Mac Profile Detail: Using the Run Now command on the Mac Profile Detail page runs a script that installs or removes the selected Mac profile on target devices that have an Agent connection to the appliance. |
• |
Mac Profiles: Selecting Choose Action > Run on the Mac Profiles page runs scripts that install or remove multiple Mac profiles at the same time, provided that target devices have an Agent connection to the appliance. |
NOTE: In case you encounter an error while running a script, refer to Error codes caused by patching and scripting for a list of error codes that may help you diagnose the issue. |
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. Termini di utilizzo Privacy Cookie Preference Center