Profile Management

Profile Management variables

In this version of Profile Management, the following variables are available for use in both Group Policy and the .ini file.

For policies that define files and registry entries, the following variables expand as follows:

Variable Expansion for Version 1 profiles Expansion for Version 2 profiles
!ctx_localsettings! Local Settings\Application Data AppData\Local
!ctx_roamingappdata! Application Data AppData\Roaming
!ctx_startmenu! Start Menu AppData\Roaming\Microsoft\Windows\Start menu
!ctx_internetcache! Local Settings\Temporary Internet Files AppData\Local\Microsoft\Windows\Temporary Internet Files
!ctx_localappdata! Local Settings\Application Data AppData\Local

For policies that are used to build paths, the !ctx_osbitness! variable expands to x86 or x64 depending on the operating system. The following variables also expand:

  • !ctx_osname! expands to the short name as follows depending on the operating system.
  • !ctx_profilever! expands to the profile version as follows depending on the operating system.

The long name is written to the log files when the Profile Management Service starts.

Long Name Short Name Profile Version
Windows 10 Redstone 6 Win10RS6 v6
Windows 10 Redstone 5 Win10RS5 v6
Windows 10 Redstone 4 Win10RS4 v6
Windows 10 Redstone 3 Win10RS3 v6
Windows 10 Redstone 2 Win10RS2 v6
Windows 10 Redstone 1 Win10RS1 v6
Windows 10 Win10 v5
Windows 8.1 Win8.1 v4 or v2
Windows 8 Win8 v3 or v2
Windows 7 Win7 v2
Windows Server 2019 Win2019 v6
Windows Server 2016 Win2016 v6
Windows Server 2012 R2 Win2012R2 v4 or v2
Windows Server 2012 Win2012 v3 or v2
Windows Server 2008 R2 Win2008 v1
Windows Server 2008 Win2008 v1


For Windows 8, Windows 8.1, Windows Server 2012, and Windows Server 2012R2, the actual profile version might change. If the UseProfilePathExtensionVersion registry key under HLKM\System\CurrentControlset\Services\ProfSvc\Parameters is set to 1, the profile version is v3 or v4 depending on the operating system. If it is not set or is set to 0, the profile version is v2.

Profile Management variables