The Scripting capabilities in Sassafras 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 Sassafras administrators. This page provides some scripts that are broadly useful to all Sassafras administrators. Documentation for all aspects of scripting is available at these links:

The scripts listed below can be added to KeyConfigure 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 Sassafras admins, contact Sassafras to see if we can provide assistance.

Add Tags
Adds tags to selected computers, policies, products, and users.
Sassafras SoftwareInstall or Download
Remove Tags
Removes specified tags from selected computers, policies, products, and users.
Sassafras SoftwareInstall or Download
Add Tag to Listed Items
Adds a tag to all objects listed in a supplied text file.
Sassafras SoftwareInstall or Download
Show Tagless Items
Opens a new window that lists all of the items of a certain type that have no tags.
Sassafras SoftwareInstall or Download
Set PVU
Sets the PVU for selected computers.
Sassafras SoftwareInstall or Download
Change Lifecycle Stage
Changes the Lifecycle Stage for selected computers.
Sassafras SoftwareInstall or Download
Move Computers
Changes login, division, lifecycle, and anchor settings for selected computers.
Sassafras SoftwareInstall or Download
Computers Without Product
Lists all computers that do not have the selected product(s) installed.
Sassafras SoftwareInstall or Download
Reset Station ID
Reset the Station ID of the selected computer(s) to the default (equal to Computer ID).
Sassafras SoftwareInstall or Download
Change Policy Expiration
Changes the expiration date for selected policies.
Sassafras SoftwareInstall or Download
List Computers
Given a text file with a list of computer names, open a window showing corresponding computer records.
Sassafras SoftwareInstall or Download
Gather Dell Dates
Query warranty dates for selected Dell computers by SN, using an API key.
Sassafras SoftwareInstall or Download
Lookup Lenovo Warranty Date
Query warranty dates for selected Lenovo computers by SN.
Sassafras SoftwareInstall or Download
Change Map Visibility
Show or Hide selected Products on KeyReporter’s Availability Maps and Software Lists.
Sassafras SoftwareInstall or Download
Sync with TeamDynamix
Synchronize Computer, Product, and Audit data with TeamDynamix.
Sassafras SoftwareInstall or Download
Show Package Audit
List the packages on a computer, or the computers that have a given package.
Sassafras SoftwareInstall or Download
Import Time Sets
Import Time Sets from a CSV formatted file, adding new sets or replacing existing sets as appropriate.
Sassafras SoftwareInstall or Download
Export Detail URLs
Save URLs for accessing the selected objects, useful for creating QR Code labels.
Sassafras SoftwareInstall or Download

Have you written a script that you think would be useful to other Sassafras 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.