TaskbarLinksTaskbarLinks

TaskbarLinks 指定要顯示在工作列上的快速鍵。TaskbarLinks specifies shortcuts to display on the taskbar. 最多六個程式的捷徑,就可以指定 Microsoft Store 應用程式或網站的連結。Up to six shortcuts to programs, Microsoft Store apps or website links can be specified.

注意

已釘選到工作列的任何項目不會出現在啟動功能表清單的最常用的程式。Any item that is pinned to the taskbar will not appear in the Start menu list of most frequently used programs.

每一項下設定TaskbarLinks指定:Each of the settings under TaskbarLinks specifies:

工作列連結類型Taskbar Link Type 格式Format

快顯程式Shortcut to programs

完整路徑和檔案名稱的捷徑.lnk 檔案副檔名。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.

網站連結的捷徑Shortcut to website link

副檔名.website 捷徑檔案完整路徑和網站名稱。The complete path and website name of the shortcut file with a .website file name extension. 捷徑檔案的路徑必須參考到目的電腦上的位置。The path to the shortcut file must refer to a location on the destination computer.

Microsoft Store 應用程式捷徑Shortcut to a Microsoft Store app

使用應用程式使用者模型識別碼 (AUMID)。Use the Application User Model ID (AUMID).

程式的捷徑,捷徑中的每個檔案必須包含的完整路徑和檔案名稱,對應的程式檔,副檔名為.exe 檔案名稱。For shortcuts to programs, each shortcut file must include the complete path and file name of a corresponding program file with an .exe file name extension. 程式檔案的路徑必須參考到目的電腦上的位置。The path to the program file must refer to a location on the destination computer.

我們建議您將捷徑檔案新增至所有使用者開始功能表上,例如: %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.

這項設定沒有在 Server Core 安裝的任何作用。This setting has no effect on Server Core installations.

子項目Child Elements

設定Setting 描述Description
Link0Link0 指定路徑的第一個捷徑。Specifies the path to the first shortcut.
Link1Link1 指定第二個捷徑的路徑。Specifies the path to the second shortcut.
Link2Link2 指定第三個捷徑的路徑。Specifies the path to the third shortcut.
Link3Link3 指定第四個捷徑的路徑。Specifies the path to the fourth shortcut.
Link4Link4 指定第五個捷徑的路徑。Specifies the path to the fifth shortcut.
Link5Link5 指定第六個捷徑的路徑。Specifies the path to the sixth shortcut.

有效的設定階段Valid Configuration Passes

auditUserauditUser

oobeSystemoobeSystem

特製化specialize

父階層Parent Hierarchy

Microsoft-Windows-Shell-Setup | TaskbarLinksMicrosoft-Windows-Shell-Setup | TaskbarLinks

套用至Applies To

如需支援的 Windows 版本與此元件支援的架構,請參閱Microsoft Windows Shell-安裝For a list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML 範例XML Example

下列的 XML 輸出會示範如何設定捷徑 Wordpad 」、 「 錄音機 」 AppID1 AUMID Microsoft Store 應用程式的捷徑,捷徑 Bing 網站捷徑。The following XML output shows how to set a shortcut for Wordpad, a shortcut to Sound Recorder, a shortcut to a Microsoft Store app with an AUMID of AppID1 and a shortcut to the Bing website.

<TaskbarLinks>
   <Link0>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Wordpad.lnk</Link0>
   <Link1>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Accessories\Sound Recorder.lnk</Link1>
   <Link2>AppID1</Link2>
   <Link3>%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Websites\Bing.website</Link3>
</TaskbarLinks>

Microsoft-Windows-Shell-SetupMicrosoft-Windows-Shell-Setup