Macros assist specification of various Mirage directory paths addressed by policy rules. For example, macros allow 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 Mirage backups important files regardless of their specific location.

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

System Directories

The following macros are supported for system directory paths:

Table 1. System Directory Macros

Macro

Description

%systemvolume%

The system drive letter followed by a ":".

%systemtemp%

The Windows system temp directory.

%windows%

The Windows directory.

%Anyvolume%

Expands to multiple rules, one per drive letter.

%documentsandsettings%

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

%programfiles%

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

For example:

C:\Program Files

C:\Program Files (x86)

%systemdir%

The Windows system directory.

Profile Directories

The following macros are supported for profile directory paths:

Table 2. 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:\Windows\system32\config\systemprofile

C:\Windows\ServiceProfiles\LocalService

C:\Windows\ServiceProfiles\NetworkService

C:\Users\User1

%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.

For example:

C:\Windows\system32\config\systemprofile\AppData\Local

C:\Windows\ServiceProfiles\LocalService\AppData\Local

C:\Windows\ServiceProfiles\NetworkService\AppData\Local

C:\Users\User1\AppData\Local

%anyusertemp%

All the user’s TEMP directories.

For example:

C:\Windows\system32\config\systemprofile\AppData\Local\Temp

C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp

C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp

C:\Users\User1\AppData\Local\Temp

Special Profile Directories

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

Table 3. Special Profile Directory Macros

Macro

Description

%ProgramData%

The special Application data directory under the All Users directory.

%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:

C:\Users\Public

C:\Windows\system32\config\systemprofile

C:\Windows\ServiceProfiles\LocalService

C:\Windows\ServiceProfiles\NetworkService

%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.

For example:

C:\Windows\system32\config\systemprofile\AppData\Roaming

C:\Windows\ServiceProfiles\LocalService\AppData\Roaming

C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming

C:\Users\User1\AppData\Roaming

%Anyusertempinternetfiles%

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

For example:

C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\Windows\Temporary Internet Files

C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Windows\Temporary Internet Files

C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Windows\Temporary Internet Files

C:\Users\User1\AppData\Local\Microsoft\Windows\Temporary Internet Files

%anydesktopshellpaths%

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.

%skydrive%

All the user's Microsoft OneDrive directories in the machine.