Scense Administrator Guide

⌘K
  1. Home
  2. Docs
  3. Scense Administrator Guid...
  4. Advanced Task Structures
  5. Scense Variables

Scense Variables

Scense offers extensive use of variables. The format of variables always is %name%. The variables name is not case sensitive.

Scense supports the following variables:

Name of the variable Representation
Desktop / DesktopDirectory Desktop folder of the current user.

%UserProfile%\Desktop

Programs Programs/ All Program folders of the current user.

%UserProfile%\Start Menu\Programs

Controls Reserved (Shell PIDL)
Printers Reserved  (Shell PIDL)
Personal Personal documents folder of the current user.

E.g.: D:\My Documents

Favorites Favorites folder of the current user.

E.g.: D:\My Documents\Favorites

Startup Startup folder of the current user.

%UserProfile%\Start Menu\Programs\Startup

Recent Folder with shortcuts to recently opened documents of the current user.

%UserProfile%\Recent

Sendto Folder ‘send to’ of the current user.

%UserProfile%\SendTo

Recycle Reserved  (Shell PIDL)
StartMenu Start menu folder of the current user.

%UserProfile%\Start Menu

QuickLaunch Location of the QuickLaunch toolbar
Drives Reserved  (Shell PIDL)
Network Reserved  (Shell PIDL)
Nethood Adjusted network surrounding folder of the current user.

%UserProfile%\NetHood

Fonts System folder for font types.

E.g.:  C:\WINDOWS\Fonts

Templates Templates folder of the current user.

%UserProfile%\Templates

CommonTemplates Templates folder for all users.

E.g.:  C:\Documents and Settings\All Users \Templates

Common_StartMenu /

CommonStartMenu

Start menu folder for all users.

E.g.:  C:\Documents and Settings\All Users\Start Menu

Common_Programs /

CommonPrograms

Programs / All Programs folder for all users.

E.g.: C:\Documents and Settings\All Users\Start  Menu\Programs

Common_Startup /

CommonStartup

Start-up folder for all users

E.g.:  C:\Documents and Settings\All Users\Start  Menu\Programs\Startup

Common_DesktopDirectory / CommonDesktop Desktop for all users.

E.g.:  C:\Documents and Settings\All Users\Desktop

CommonDocuments Documents folder for all users.

E.g.:  C:\Users\All Users\Documents

AppData Roaming Application Data folder of the current user

E.g.:  %UserProfile%\Application Data

LocalAppData Non-roaming Application Data folder of the current user

E.g.:  %UserProfile%\Application Data

CommonAppData Application data folder for all users

E.g.:  C:\Documents and Settings\All Users\Application Data

DefaultPrinterUNC Network printer resource name as defined in the Printer propery page.
AdminTools Shortcut location for user specific Administrative Tools

E.g.:  %UserProfile%\Start Menu\Programs\Administrative  Tools

CommonAdminTools Shortcut location for all users Administrative Tools

E.g.:  C:\Documents and Settings\All Users\Start  Menu\Programs\Administrative Tools

AllUsersProfile Base profile folder for all users

E.g.:  C:\Documents and Settings\All Users

DefaultUserProfile Base profile folder for the ‘Default User’

E.g.:  C:\Users\Default

Pictures / MyPictures Personal Pictures folder for the current user

E.g.:  %UserProfile%\My Documents\My Pictures

Printhood Adjusted print hood folder of the current user

%UserProfile%\PrintHood

CommonFiles Common Files system folder

E.g.:  C:\Program Files\Common Files

ProgramFiles Program Files system folder depending on context

In Application context:

E.g.: C:\Program Files   (32-bit app. on 32-bit OS)

C:\Program Files  (64-bit app. on 64-bit OS)

C:\Program Files (x86) (32-bit app. on 64-bit OS)

Out of Application Context:

E.g.: C:\Program Files  (on both 32-bit and 64-bit)

ProgramFiles64 Program Files system folder on 64-bit systems

E.g.: C:\Program Files

System / System32 The Windows System folder

E.g.:  C:\Windows\System32 (on both 32-bit and 64-bit)

SysWOW64 The windows System folder for 32-bits applications on 64-bit systems

E.g.:  C:\Windows\SYSWOW64

ScenseSystemDir The Windows system folder containing Scense components

E.g.: C:\Windows\system32 (on 32-bit systems)

C:\Windows\SYSWOW64 (on 64-bit systems)

CurrentUser Name of the current user.

(For use  from ODS)

CurrentUserDomain Domain of the current user.

(For use  from ODS)

CurrentUserDesktop Desktop folder of the current user.

(For use  from ODS)

CurrentUserMenu Start menu folder of the current user.

(For use  from ODS)

Context Depending of the Taskset Status, one of the ApplicationContext value from the Site-object are represented here.
ApplicationArchitecture Architecture indication for the application

E.g.: 64bit

ApplicationName / ApplicationDescription Representation of the Application Name
ApplicationLink Representation of the Application Link
ApplicationType Type of the application (Generic, Windows Installer, Virtual Layer)
ApplicationTypeNumber Type of the application (numeric, not translated)
ApplicationVersion Application Object version
ApplicationProductGUID Product GUID of the attached Windows Installer Package
ApplicationProductName Product Name of the attached Windows Installer Package
ApplicationProductFile Product Filename of the attached Windows Installer Package
ApplicationLayerGUID Layer GUID of the attached Virtual Layer Archive
ApplicationLayerName Layer Name of the attached Virtual Layer Archive
ApplicationLayerFile Layer Filename of the attached Virtual Layer Archive
ApplicationLayerOS Originating Operating System of the attach Virtual Layer Archive
ApplicationThinAppGUID GUID of the attached ThinApp Package
ApplicationThinAppName Name of the attached ThinApp Package
ApplicationAppvName Name of the attached App-V 5 package
ApplicationAppvGUID GUID of the attached App-V 5 package
AppVPackageRoot Full path to the root of the published App-V 5 package
AppVPackageVFS Full path to the VFS of the published App-V 5 package (=%APPVPACKAGEROOT%\VFS)
InstallLocation Installation location, determined by the application object
InstallType Installation type (‘Local’ of ‘Shared’) , determined by the application object
ComputerType Representation of the computer type (0=Desktop, 1=Laptop, 2=TerminalServer, 3=Server)
ComputerSite Current SiteCode
Domain Name of the current logon domain
User Login Name of the current user.
UserSID Security Identifier of the current user.
UserFullName Full name of the current user.
EngineMode Current Scense Engine connection mode

E.g.: 0 = Native 1 = Local Cache

OSType Simple name of the Operating System.

Windows_XP

OSArchitecture Processor architecture for the current operating system

E.g.: 32bit

OSLanguage Language of the Operating System

NL

IsAdmin Is the current user an administrator?

True / False

IsWorkstation Is the computer a workstation?

True / False

IsLaptop Is the computer a Laptop?

True / False

IsServer Is the computer a server?

True / False

IsVirtual Is the computer running in a virtual machine?

True / False

RepositoryContext Depending of the Taskset status one of the ApplicationRepositoryLocation values from the site-object is represented here.
OSExtendContext Depending of the Taskset status one of the OSExtendRepositoryLocation values from the site-object is represented here.
RebootRequired The last Windows Installer installation indicates that a reboot is required in order to complete the installation.

True / False

RunningAsService Does the current Session Event run in the security context of a service?

True / False

TasksetName Name of the Taskset
TasksetGUID Identification of the Taskset

E.g.. {DACF2077-5180-4925-B779-D429E79D7910}

TaskSetReferenceName Group name (exc. Domain name) of the current Taskset. First AD group criterion is used.
TaskSetGroupName Group name (incl. domain name) of the current Taskset. First AD group criterion is used.
TaskSetGroupList All group names (incl. domain name) from all AD group criteria in a comma separated list.
TasksetCondition Outcome of the conditions on the Taskset / Session Event.

True / False

TasksetBlocked Is the Taskset blocked by the administrator?

True / False

TasksetStatus Represents the status of the current Taskset

0=Final, 1=Approval, 2=Test

ShortcutGUID Identification of the shortcut that was clicked to start this Taskset

E.g.. {CBBE7284-9834-0021-09EC-82937AAC69FB}

SettingEnabled For use within settings

True if the setting is enabled / False if it is disabled

Link_ExePath For use in a ‘shortcut Default’ Process action.

Path to the executable as specified in the shortcut

Link_Arguments For use in a ‘shortcut Default’ Process action.

Command line argument as specified in the shortcut

Link_StartPath For use in a ‘shortcut Default’ Process action.

Start-in folder as specified in the shortcut

RunMode Represents  the RunMode of the current Session Event

0=True, 1=False, 2=Any, 3=Installed, 4=Not Installed, 5=Blocked, 6=Time

Privileged Is the Taskset executed  in ‘Privileged mode’?

True / False

TestMode Is the Taskset executed in ‘Test mode’?

True / False

Date Current date

24-10-2003

Time Current time

15:49:15

Day Current day of the month

24

Week Week number

11

DayOfWeek Day of the week (0=Sunday)

4

WeekDay Name of the day

Wednesday

ActionCount Total number of actions selected for execution

3

ThisActionGUID The GUID of the action that is about to be executed

E.g. {FECF2AD6-5180-4925-B779-D429E79D7910}

ThisActionName The Name of the action that is about to be executed

E.g. Launch Application

ThisActionType The Type of the action that is about to be executed

0 = Environment

1 = File

2 = Network

3 = OnDemand

4 = Process

5 = Registry

6 = Scripting

7 = Service

8 = Shortcut

9 = TaskSet

10 = Message

11 = WebHTML

12 = WebHyperlink

13 = Windows Installer

14 = Virtual Layer

15 = Printing

16 = App-V

17 = Document

18 = ThinApp

ThisActionScope The Scope of the action that is about to be executed

0 = Run As ODS & User

1 = Run As ODS

2 = Run As User

ThisActionOperation The Operation of the action that is about to be executed

Dependent of ThisActionType

0 (Process Action->Start , Shortcut Action->Create   etc.)

ThisActionIndex The Index of the action that is about to be executed

2 (This is the second action in the session event)

PreviousActionElapsed The time, in msec, the previous action took to complete

1274 (= 1,274 seconds)

LastErrorTaskSet The name of the Taskset that was involved during the last error.
LastErrorSessionEvent The name of the Session Event that was involved during the last error.
LastErrorAction The name of the Action that raised the last error.
SFT_MNT Microsoft App-V 4.x Virtual Environment Drive

E.g.: Q:\

AccessDeviceName Name of the physical access device name. This is either the local computer name or the name of the remote terminal server client.
UnmanagedMode Indicated whether the Scense Client runs in the Unmanaged Mode (False=Normal Mode / True=Unmanaged Mode
UnmanagedDomain Domain name for the locally logged on user
UnmanagedUser User name for the locally logged on user
WTSClient Computer name of the remote terminal server client
WTSClientIP IP address of the remote terminal server client
UserOU Organizational Unit path for the user
ComputerOU Organizational Unit path for the computer
InScript Resolves to ‘true’ if the Scense runtime is currently busy running a Scense script
ThisScriptType The type of the script that is currently being run
ThisScriptName The nameof the script that is currently being run