WiseScript Editor Reference
11
Why Use WiseScript?
Use WiseScript to automate system administration tasks. Its easy-to-use, structured
interface lets you create useful scripts in a fraction of the time it would take to write
them in a free-form scripting language such as VBScript.
WiseScript excels at retrieving information about a computer, prompting for input
(example: passwords) if necessary, and taking action based on that information. This is
different from using Altiris® Inventory Solution® software, for example, which can
collect snapshot information about a computer’s state but cannot take immediate action.
In addition, the computer’s state might change between the time you take the snapshot
and when you can analyze the data and schedule a task to take action. A WiseScript
collects and analyzes the data and takes action in real time.
When you have a task that you cannot easily perform with your other tools, reach for
WiseScript. You can write a WiseScript to quickly solve an urgent problem, and you can
create a library of WiseScripts to resolve common problems and perform routine
maintenance. Use Altiris® Software Delivery Solution™ software to deploy your
WiseScripts on an as-needed or regularly scheduled basis.
Scenarios for Using WiseScript
z
An end user reports that their default browser does not open when they click on an
HTML file. You can create a simple WiseScript that reads the default browser from
the registry, verifies that the default browser is installed, and either edits the
registry key, installs the default browser, or both.
z
You need to update a platform-dependent .DLL file on a collection of computers that
are running different operating systems. Instead of creating a different Software
Delivery task for each version of the file, you can create one Software Delivery task
that runs a WiseScript. The WiseScript finds the version of Windows that is running
on each computer and installs the correct .DLL file for that version.
z
You want all company computers to display a corporate desktop theme. You can
write a WiseScript to:
Check the Windows version on the computer.
Create a theme directory.
Register the path to the theme directory in the registry, using the WiseScript
conditional logic to create the registry key in a different location depending on
the Windows version.
Install the theme file in its directory.
Additional WiseScript Examples
Following are just a few of the tasks you can accomplish with WiseScript. For samples of
some of these scripts, see the article
Performing System Administration Tasks With
WiseScripts
in the Altiris Knowledgebase (Article #27374).
z
Move files and directories.
z
Modify a machine resource (example: registry key or .INI file).
z
Locate and delete a file and its directory (example: to remove a spyware program).
z
Free disk space by clearing the Temp directory, the Recycle Bin, or the Internet
cache.
z
Find the current Windows version.
Summary of Contents for ALTIRIS INVENTORY 7.0 SP2 - FOR NETWORK DEVICES V1.0
Page 1: ...WiseScript Editor Reference ...
Page 31: ...WiseScript Editor Reference 31 ...
Page 91: ...WiseScript Editor Reference 91 ...
Page 148: ...WiseScript Editor Reference 148 ...