You can add or edit scripts using the Administrator Console.
To add and edit scripts, do one of the following:
Offline and online KScripts include one or more tasks. Within each Task section, there are Verify and Remediation sections where you can further define the script behavior. If a section is blank, it defaults to Success.
1. |
a. |
Log in to the K1000 Administrator Console, http://K1000_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. |
c. |
2. |
A meaningful name for the script that distinguishes it from others on the Scripts list. | |||||||
The script type. Script types include:
| |||||||
Whether the script is in development (Draft) or has been rolled out to your network (Production). Use the Template status if you are building a script to use as the basis for future scripts. | |||||||
3. |
Deploy to all devices. Clear the check box to limit the deployment to specific labels or devices. | |||
Limit deployment to devices that belong to specified labels. To select labels, click Edit, drag labels to the Limit Deployment to window, then click Save. | |||
Limit deployment to one or more devices. To find devices, begin typing in the field. | |||
4. |
Specify Windows Run As settings (for online shell scripts and KScripts that run on Windows devices only): |
5. |
In the Notify section, specify user alert settings. Alerts are available only for online KScripts and online shell scripts on Windows and Mac devices running the K1000 Agent version 5.1 and higher: |
Options presented to the user in the alert dialog (available when you select Alert user before run):
If the time specified in the Timeout elapses without a user response, the script runs at that time. Interaction with Run As:
| |||||||||
The amount of time, in minutes, for the dialog to be displayed before an action is performed. If this time period elapses without the user pressing a button, the appliance performs the action specified in the Timeout drop-down list. | |||||||||
The action to be performed when the Timeout period elapses without the user choosing an option. | |||||||||
The amount of time, in minutes, for the period after the user clicks Snooze. When this period elapses, the dialog appears again. | |||||||||
The message to be displayed to users before the action runs. To customize the logo that appears in the dialog, see Configure appliance General Settings without the Organization component. |
6. |
Run in combination with an event rather than on a specific date or at a specific time. | |||||||||||
Every nth minutes/hours |
|||||||||||
Run daily at a specified time, or run on a designated day of the week at a specified time. | |||||||||||
Run on the nth of every month or on a specific month at HH:MM |
Run on the same day every month, or a specific month, at the specified time. | ||||||||||
Run according to a custom schedule. Use standard 5-field cron format (extended cron format is not supported): Use the following when specifying values:
| |||||||||||
Also run once at next device checkin (for offline KScripts only) |
Runs the offline KScript once when new scripts are downloaded from the appliance. | ||||||||||
Also Execute before login (for offline KScripts only) |
| ||||||||||
Also Execute after login (before desktop loads) (for offline KScripts only) |
Runs the offline KScript after users enter Windows login credentials. | ||||||||||
Allow run while disconnected (for offline KScripts only) |
|||||||||||
a. |
b. |
c. |
NOTE: If the Replication Share is inaccessible, the dependencies are downloaded from the appliance. To enable this setting, select the Failover To Appliance check box on the Replication Schedule Detail page. See Create Replication Shares. |
Repeat this step to add dependencies as needed.
8. |
a. |
Enter the number of times the appliance attempts to run the script. If the script fails but remediation is successful, you might want to run the task again to confirm the remediation step. To do this, set the number of attempts to 2 or more. If the Verify section fails, the script runs the number of times specified in this field. | |||||
|
b. |
c. |
d. |
In the On Remediation Success and On Remediation Failure sections, select one or more steps to perform. |
TIP: To remove a dependency, click the Delete button next to the item:
TIP: Click the Edit button next to Policy or Job Rules to view the token replacement variables that can be used anywhere in the script:
TIP: See . |
◦ |
Click Run Now to immediately push the script to all devices. |
Use this option with caution. See Using the Run and Run Now commands.
◦ |
Click Save. |
1. |
a. |
Log in to the K1000 Administrator Console, http://K1000_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. |
c. |
▪ |
3. |
4. |
5. |
© 2021 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy