Remote Monitoring & Management Help

Substitution Strings and Local File Environmental Variable Replacements

Substitution Strings

Rather than create a unique email or hyperlink for each Client, manually entering the details for each one. Use substitutions strings to automatically populate these fields. For example, in the Email Subject line and Hyperlink menu options.

String

Meaning

#DEVICE#

Machine name

#DEVICEID#

Unique device identification number

#SITE#

Site name

#SITEID#

Site identification number

#CLIENT#

Client name

#CLIENTID#

Client identification number

#CURRENT_USER#

Username of currently logged on user

Local File Environmental Variable Replacements

Supported Variable

Pre-Vista

Vista and Later

%ALLUSERSPROFILE%

C:\Documents and Settings\All Users

C:\ProgramData

%APPDATA%

C:\Documents and Settings\{username}\Application Data

C:\Users\{username}\AppData\Roaming

%CommonProgramFiles%

C:\Program Files\Common Files

C:\Program Files\Common Files

%COMMONPROGRAMFILES(x86)%

C:\Program Files (x86)\Common Files

C:\Program Files (x86)\Common Files

%COMPUTERNAME%

{computername}

{computername}

%COMSPEC%

C:\Windows\System32\cmd.exe

C:\Windows\System32\cmd.exe

%HOMEDRIVE%

C:

C:

%HOMEPATH%

\Documents and Settings\{username}

\Users\{username}

%LOCALAPPDATA%    

N/A*

C:\Users\{username}\AppData\Local

%LOGONSERVER%

\\{domain_logon_server}

\\{domain_logon_server}

%PATH%

C:\Windows\System32\

C:\Windows\

C:\Windows\System32\Wbem

Plus program paths

C:\Windows\System32\

C:\Windows\

C:\Windows\System32\Wbem

Plus program paths

%PATHEXT%

.COM

.EXE

.BAT

.CMD

.VBS

.VBE

.JS

.WSF

.WSH;

.COM

.EXE

.BAT

.CMD

.VBS
.VBE

.JS

.WSF
.WSH

.MSC

%ProgramData%

N/A

C:\ProgramData

%ProgramFiles%

C:\Program Files

C:\Program Files

%ProgramFiles(x86)%

C:\Program Files (x86)

C:\Program Files (x86)

%PROMPT%

Code for current command prompt format, usually $P$G

C:>

Code for current command prompt format, usually $P$G

C:>

%PSModulePath%

N/A

%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\

%Public%

N/A

C:\Users\Public

%SYSTEMDRIVE%

C:

C:

%SYSTEMROOT%

C:\Windows

C:\Windows

%TEMP% and %TMP%

C:\Documents and Settings\{username}\Local Settings\Temp

C:\Users\{Username}\AppData\Local\Temp

%USERDOMAIN%

{userdomain}

{userdomain}

%USERNAME%

{username}

{username}

%USERPROFILE%

%SystemDrive%\Documents and Settings\{username}

%SystemDrive%\Users\{username}

%WINDIR%

C:\Windows

C:\Windows

From : Windows Environment Variables

* Manually add LOCALAPPDATA=%USERPROFILE%\Local Settings\Application Data