The Scripting capabilities in K2 allow you to extend KeyConfigure with tasks and options specific to your workflow. Anyone who understands JavaScript can write scripts and share them with other K2 administrators. This page provides some scripts that are broadly useful to all K2 administrators. Documentation for all aspects of scripting is available at these links:
- Manage Scripts Window — describes how to install scripts
- Scripting Tutorial — gives an overview of writing scripts
- Scripting Reference — provides details for script development
The scripts listed below can be added to KeyConfigure 7.4 to extend functionality. Click on the Install link next to a description to add the script to KeyConfigure. You must have KeyConfigure installed on the computer on which you are viewing this page.
Use these as they are, or as a starting point for writing your own scripts. Writing scripts requires knowledge of the JavaScript language. If you have an idea for a script that might be of general interest to other K2 admins, contact Sassafras to see if we can provide assistance.
Add Tags Adds tags to selected computers, policies, products, and users. | Sassafras Software | Install or Download |
Remove Tags Removes specified tags from selected computers, policies, products, and users. | Sassafras Software | Install or Download |
Show Tagless Items Opens a new window that lists all of the items of a certain type that have no tags. | Sassafras Software | Install or Download |
Set PVU Sets the PVU for selected computers. | Sassafras Software | Install or Download |
Change Lifecycle Stage Changes the Lifecycle Stage for selected computers. | Sassafras Software | Install or Download |
Move Computers Changes login, division, lifecycle, and anchor settings for selected computers. | Sassafras Software | Install or Download |
Computers Without Product Lists all computers that do not have the selected product(s) installed. | Sassafras Software | Install or Download |
Have you written a script that you think would be useful to other K2 administrators? Send it to Sassafras and we will review it for inclusion on this page. Your script must follow the bundling guidelines in the Tutorial and Reference, and should not contain any settings that are specific to your usage (e.g. host names, passwords, URLs). Send questions, requests, and submissions to Sassafras Support.