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

特殊化specialize

父階層Parent Hierarchy

Microsoft-Windows-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