Skip to content

Variables

VariableTypeDescription
gb9xBooleanTrue if the operating system is Windows 95, 98 or ME
gb9xWMILoadedBooleanTrue if win9x Windows Management Instrumentation is loaded
gbADSIBooleanTrue if Microsoft ADSI is available
gbCancelBooleanJob has been cancelled
gbCapaPCBooleanTrue if the computer has been created using the CapaInstaller PC Creator
gbDebugBooleanIf set all function will create extensive log entries. Default is false
gbDisablelogBooleanDisables runtime logging
gbDisplaymsgBox1BooleanDisplays message box 1
gbDisplaymsgBox2BooleanDisplays message box 2
gbDisplaymsgBox3BooleanDisplays message box 3
gbEnableHWInventoryBooleanEnable inventory information in deployment logs
gbEnablePackageSequenceBooleanDisplays all waiting packages (AMO only)
gbGenericBooleanGeneric Boolean Variable
gbInformuserBooleanInforms End-user about process
gbIsMemberOfBusinessUnitBooleanBusiness Unit membership. Business Unit support
gbInvokeJobErrorBooleanInvokes JobError
gbJobErrorAlreadyCalledBooleanJobError handling started
gbJobStartBooleanJob has been initialised successfully
gbLogoffUserBooleanLogoffs End-user before starting job
gbNTBooleanTrue if the operating system is Windows NT or 2000
gbRDSBooleanTrue if running on Terminal Server or RDS Role is active
gbSMSBooleanCurrent platform is Microsoft SMS
gbSVSBooleanAltiris SVS installed (initiated through SVS_Init())
gbSuficientDiskSpaceBooleanSufficient Diskspace
gbTerminalServerBooleanTrue if running on Terminal Server or RDS Role is active
gbWMIBooleanWMI is active
gbx64BooleanThe script is running on a 64 bit platform
gcTotalMemoryInBytesCurrencyHolds the total size of physical memory in bytes
giCancellationTimeOutIntegerNumber of seconds End-user has to cancel job
giEndTimeIntegerEnd-time when job has ended
giErrorCodeIntegerReturned error-codes
giJobTrigBalloonTimeOutIntegerDefines timeout for Ballon messages if they differ from default values
giMaxCancellationCountIntegerMaximum number of End-user cancellations allowed
giMajorVersionNumberIntegerMajor version of installed operating system
giMinorVersionNumberIntegerMinor version of installed operating system
giProcessIDIntegerContains process id of started process
giSessionIDIntegerCurrent sessionID
giStartTimeIntegerJob starttime
gsAccountNameStringCscript/Wscript process owner (defined in Security_init function)
gsAgentIdStringRepresents the AgentID for either the user or computer (the UUID column of the UNIT table)
gsAllUsersStringProfile root folder for All users (NT/W2K/XP only)
gsBiosNameStringThe BIOS vendor and version string
gsBiosSerialNumberStringThe serial stored in the BIOS if it exist
gsBusinessUnitNameStringThe name of the business unit. Business Unit support
gsCancellationModeStringAllows End-user to cancel : “IF USER LOGGED ON”, NEVER or ALWAYS
gsCapaInstallerRootFolderStringCapaInstaller Root Folder (default is <ProgramFiles>\CapaInstaller)
gsCIPreFixStringCapaInstaller package prefix (E.g. CI_)
gsApplicationDataDirStringApplication Data path
gsCommonAppDataStringCommon Application Data path
gsCommonDesktopStringCommon Desktop path
gsCommonFilesDirStringCommon files path
gsCommonFilesDirx86StringX86 Common Files path on a 64-bit Operating System
gsCommonProgramsStringCommon programs path
gsCommonStartMenuStringCommon Windows Startmenu path
gsCommonStartupStringCommon Windows Startup path
gsComputerManufacturerStringThe vendor of the computer
gsComputerModelStringThe model name
gsConnectionTypeStringConnection type (http or smb)
gsCPUSpeedStringThe current CPU speed (at job init)
gsDesktopStringCurrent users desktop
gsEstimatedTimeStringEstimated run time in minutes
gsErrDescStringSystem Error-description
gsErrStringStringCustom Error-description
gsExecutionContextStringCurrent execution context. Execution Context
gsHardDiskNameStringThe Harddisk vendor
gsHardDiskSizeStringSize of Harddisk
gsHardDiskSerialNumberStringSerialnumber of Harddisk if exist
gsInstallationModeStringReturns Installation Mode (Silent, Attended or Logoff Enduser Installation)
gsJobNameStringName of current job
gsLanguageStringEnd-user language. Scripting Library supports English and Danish
gsLibraryStringLibrary path
gsLogStringLogfile full pathname
gsLogDirStringLogfile path
gsLogNameStringLog filename
gsMemoryStringThe amount of RAM installed in Mb
gsModeStringCurrent mode set in Job_Start
gsMSSystemStringActive Microsoft System
gsNTSPStringThe Windows NT or 2000 Service Pack level
gsOsBuildStringThe build of the operating system
gsOsSystemStringOperating System platform
gsPackageRootStringPackageRoot path
gsProductidStringPackage product id
gsProfileDirStringProfile folder for all Users e.g. C:\Users\All Users or C:\Users\Public
gsProfileRootStringProfile root folder e.g. C:\Users
gsProgramFilesStringProgram Files path based on execution environment
gsProgramFilesx86StringX86 Program Files path on a 64-bit Operating System
gsReleaseIDStringPackage Release ID
gsSMSSiteCodeStringSMS Site ID
gsStatPathStringCapalib Statistics path
gsSystemDirStringWindows System path
gsSystemDirx86StringWindows x86 System path on a 64-bit Operating System
gsSysDriveStringDrive containing system
gsTaskStringTask Name
gsTempDirStringTemporary path
gsUnitNameStringHolds either Workstation Name or UUID dependend on Agent recognition
gsUserDomainNameStringUser domain name
gsUserNameStringThe user that is is running a job
gsUserPathStringUser-profile path, e.g. C:\Program Files\CapaInstaller\User Client\<username>
gsUserProfileDirStringUser home directory, e.g. C:\Users\<username>
gsUUIDStringThe uuid of the unit
gsWebLogRootStringWeb log path
gsWindowsDirStringWindows path
gsWorkstationNameStringComputerName
gsWorkstationPathStringCapaInstaller working directory, e.g. C:\Program Files\CapaInstaller\Client
gsWindowsTypeStringNT/2000 type e.g. Professional, Server or Advanced Server