Link1 (TaskbarLinks) Link1 (TaskbarLinks)

Link1 指定任务栏上第二个可用程序快捷方式的路径。Link1 specifies the path to the second available program shortcut on the taskbar.

备注

固定到任务栏的任何项将不会显示在最常使用的程序的 " 开始 " 菜单列表中。Any item that is pinned to the taskbar will not appear in the Start menu list of most frequently used programs.

建议将快捷方式文件添加到 "所有用户" " 开始 " 菜单,例如: %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Fabrikam\Application.lnkWe recommend that you add shortcut files to the All Users Start menu, for example: %ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Fabrikam\Application.lnk.

建议不要使用环境变量添加快捷方式: %USERPROFILE%We do not recommend adding the shortcut by using the environment variable: %USERPROFILE%. 使用添加的快捷方式 %USERPROFILE% 仅应用于下一个用户登录到计算机的配置文件。Shortcuts added by using %USERPROFILE% are applied only to the profile of the next user to log on to the computer. 此外,如果在 auditUser 配置阶段中应用此设置,快捷方式将仅应用于退出审核模式后删除的临时管理员帐户。Also, if the setting is applied during the auditUser configuration pass, the shortcut is applied only to the temporary administrator account, which is removed after exiting audit mode.

此设置对服务器核心安装没有影响。This setting has no effect on Server Core installations.

Values

Value 说明Description
Path_to_second_linkPath_to_second_link 指定任务栏上第二个程序快捷方式的路径。Specifies the path to the second program shortcut on the taskbar. Path_to_second_link 是最大长度为259个字符的字符串。Path_to_second_link is a string with a maximum length of 259 characters. Path_to_second_link 指定文件扩展名为 .lnk 的快捷方式文件的完整路径和文件名。Path_to_second_link specifies the complete path and the file name of a shortcut file with a .lnk file name extension. 快捷方式文件的路径必须引用目标计算机上的位置。The path to the shortcut file must refer to a location on the destination computer. 快捷方式文件必须包含具有 .exe 文件扩展名的相应程序文件的完整路径和文件名。The shortcut file must include the complete path and file name of a corresponding program file with a .exe file name extension. 程序文件的路径必须引用目标计算机上的位置。The path to the program file must refer to a location on the destination computer.

该字符串类型不支持空元素。This string type does not support empty elements. 请勿为该设置创建空值。Do not create an empty value for this setting.

有效的配置阶段Valid Configuration Passes

auditUserauditUser

oobeSystemoobeSystem

specializespecialize

父层次结构Parent Hierarchy

Microsoft-Shell-安装程序 | TaskbarLinks | Link1Microsoft-Windows-Shell-Setup | TaskbarLinks | Link1

适用于Applies To

有关此组件支持的 Windows 版本和体系结构的列表,请参阅 Microsoft-Windows Shell 设置For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML 示例XML Example

下面的 XML 输出显示了如何在桌面中添加远程桌面连接的快捷方式,以及如何在桌面上添加计算器的快捷方式。The following XML output shows how to add shortcuts for Remote Desktop Connection, Sound Recorder in the desktop, and the calculator in the desktop.

<TaskbarLinks>
   <Link0>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Remote Desktop Connection.lnk</Link0>
   <Link1>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Sound Recorder.lnk</Link1>
   <Link2>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Calculator.lnk</Link2>
</TaskbarLinks>

TaskbarLinksTaskbarLinks