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 |
Note:
For Windows 8, Windows 8.1, Windows Server 2012, and Windows Server 2012R2, the actual profile version might change. If the
UseProfilePathExtensionVersion
registry key underHLKM\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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论