Macros assist specification of various Horizon Mirage directory paths addressed by policy rules. For example, macros allow Horizon Mirage and the administrator to handle cases when some endpoints have Windows in c:\windows and some in d:\windows. Using macros and environment variables makes sure Horizon Mirage backups important files regardless of their specific location.

For information about upload policy rule specification, see Add or Edit Upload Policy Rules.

The following macros are supported for System directory paths:

System Directory Macros

Macro

Description

%systemvolume%

The system drive letter followed by a ":".

For example, c:.

%systemtemp%

The Windows system temp directory.

Usually c:\windows\temp.

%windows%

The Windows directory. Usually c:\windows.

%Anyvolume%

Expands to multiple rules, one per drive letter.

For example: c:, d:, e:.

%documentsandsettings%

Expands to one rule of the path that contains the user profiles.

Usually c:\documents and settings).

%programfiles%

The program files directory, including support for localized Windows versions, and the Program Files (x86) in 64-bit.

%systemdir%

The Windows system directory.

The following macros are supported for Profile directory paths:

Profile Directory Macros

Macro

Description

%anyuserprofile%

Expands to multiple rules, one per any user profile, including both local user profiles and domain user profiles (for example, C:\Documents and settings\myuser, and so on). This macro does not include the %defaultuserprofile% content.

%domainuserprofile%

Expands to multiple rules, one per any domain user profile.

%localuserprofile%

Expands to multiple rules, one per any local user profile.

%anyuserlocalappdata%

All the users local app data directories.

%anyusertemp%

All the user’s TEMP directories.

The following macros are supported for special profile directory paths, not included in the profile directories:

Special Profile Directory Macros

%ProgramData%

The special Application data directory under the All Users directory. For example, C:\Documents and Settings\All Users\Application data.

%defaultuserprofile%

The special Default User directory.

%builtinuserprofile%

Expands to multiple rules, one for each built-in user profile (not including local or domain users). For example, “NetworkService?” and “LocalService?”. In Windows XP, this also includes “All Users”.

%localserviceprofile%

The special “local service” directory.

%Anyuserroamingappdata%

The roaming application data directory is calculated by appending the roaming application data suffix to the user profile directory. This suffix is AppData\Roaming in Windows 7 and Application Data in Windows XP.

%Anyusertempinternetfiles%

All the user's temp internet directories on the machine.

%any% desktop%shellpaths%

All the directories below.

%desktop%

All the user’s desktop directories in the machine.

%favorites%

All the user's favorites directories in the machine.

%videos%

All the user's Video directories in the machine.

%pictures%

All the user's pictures directories in the machine.

%documents%

All the user's documents directories in the machine.

%music%

All the user's music directories in the machine.