EasyManua.ls Logo

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

Symantec ALTIRIS DEPLOYMENT SOLUTION 6.9 SP4 - V1.0
503 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Deployment Solution 236
Deploying Scripts
The following table contains the predefined server scripting commands:
Retrieving Database Values Using Tokens
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.
Server Scripting Commands
Command Description
BootWorks
Unload
Unloads BootWorks to provide additional memory for complex scripts.
BootWorks is unloaded automatically when you specify ScriptedInstall.
BootWorks Unload
ReplaceTokens
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]
ScriptedInstall
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
Deployment
Start
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
vbscript
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

Table of Contents

Related product manuals