Retrieving Database Values Using Tokens - Symantec ALTIRIS DEPLOYMENT SOLUTION 6.9 SP4 - V1.0 Manual

Table of Contents

Advertisement

Server Scripting Commands
Command
BootWorks
Unload
ReplaceTokens
ScriptedInstall
Deployment
Start
vbscript

Retrieving Database Values Using Tokens

Deployment Solution
The following table contains the predefined server scripting commands:
Description
Unloads BootWorks to provide additional memory for complex scripts.
BootWorks is unloaded automatically when you specify ScriptedInstall.
BootWorks Unload
Tokens are replaced automatically in your scripts. This command
replaces tokens in additional files, such as those used when
configuring a computer. Source represents the source file containing
the tokens you want replace, and destination represents the output
file after tokens are replaced.
ReplaceTokens [source] [destination]
Indicates that this script is launching a scripted install. 394k of free
memory is required for the Windows scripted install to run. BootWorks
is automatically unloaded for scripted installs.
ScriptedInstall
When using blade servers, this option places a note in the history to
mark a starting point.
If a redeployment is later executed on this computer, the computer is
restored from the deployment start mark in the history.
Deployment Start
Indicates that this script contains vbscript. If this appears anywhere in
your script, the entire script is executed as a vbscript (you cannot
execute batch commands and vbs commands in the same script).
The
comment flag is always used with the vbscript server command
'
when writing Visual Basic scripts to ensure that it is ignored by the VB
processor.
' vbscript
Any tokens contained in a script are replaced automatically. A server command is also
provided to replace tokens in other files, called ReplaceTokens.
Example: to deploy a custom sysprep.inf file to several computers, the ReplaceTokens
command could be contained in a script to replace tokens in sysprep.inf, this file could
be copied with the correct database values to the production drive of the computer.
A script to perform this task might look similar to the following:
REM ReplaceTokens .\temp\sysprep.inf .\temp\%COMPNAME%.txt
Firm Copy f:\temp\%COMPNAME%.txt PROD:\sysprep.inf
When replacing tokens, the server creates a temporary file in the \tmp folder, named
machinename with the same extension as the original script. This file contains a copy of
the script with all token replacements made by the server, and is a valuable tool for
troubleshooting.
Deploying Scripts
236

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Altiris deployment solution 6.9 sp4

Table of Contents