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:

VariableExpansion for Version 1 profilesExpansion for Version 2 profiles
!ctx_localsettings!Local Settings\Application DataAppData\Local
!ctx_roamingappdata!Application DataAppData\Roaming
!ctx_startmenu!Start MenuAppData\Roaming\Microsoft\Windows\Start menu
!ctx_internetcache!Local Settings\Temporary Internet FilesAppData\Local\Microsoft\Windows\Temporary Internet Files
!ctx_localappdata!Local Settings\Application DataAppData\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 NameShort NameProfile Version
Windows 10 Redstone 6Win10RS6v6
Windows 10 Redstone 5Win10RS5v6
Windows 10 Redstone 4Win10RS4v6
Windows 10 Redstone 3Win10RS3v6
Windows 10 Redstone 2Win10RS2v6
Windows 10 Redstone 1Win10RS1v6
Windows 10Win10v5
Windows 8.1Win8.1v4 or v2
Windows 8Win8v3 or v2
Windows 7Win7v2
Windows Server 2019Win2019v6
Windows Server 2016Win2016v6
Windows Server 2012 R2Win2012R2v4 or v2
Windows Server 2012Win2012v3 or v2
Windows Server 2008 R2Win2008v1
Windows Server 2008Win2008v1

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:43 次

字数:4152

最后编辑:6年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文