認證Credentials

Credentials 指定透過網路存取應用程式時使用的認證。Credentials specifies the credentials used when accessing an application over a network. Credentials 用來驗證的存取權所指定的位置路徑Credentials is used to authenticate access to a location specified by Path.

所有RunSynchronous系統內容中執行的命令。All RunSynchronous commands run in the system context.

子項目Child Elements

設定Setting 描述Description
網域Domain 指定用於驗證之帳戶的網域。Specifies the domain of the account used for authentication.
密碼Password 指定用於驗證之帳戶的密碼。Specifies the password of the account used for authentication.
UserNameUserName 指定用於驗證的帳戶的使用者名稱。Specifies the user name of the account used for authentication.

有效的設定階段Valid Configuration Passes

windowsPEwindowsPE

父階層Parent Hierarchy

Microsoft-Windows-Setup | RunSynchronous | RunSynchronousCommand | CredentialsMicrosoft-Windows-Setup | RunSynchronous | RunSynchronousCommand | Credentials

套用至Applies To

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

XML 範例XML Example

下列的 XML 輸出會顯示如何設定同步命令。The following XML output shows how to set synchronous commands.

<RunSynchronous>
   <!-- First synchronous command to execute -->
   <RunSynchronousCommand>
      <Order>1</Order>
      <Path>\\MyNetworkShare\MyApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
      <Credentials>
         <Domain>FabrikamDomain</Domain>
         <UserName>MyUserName</UserName>
         <Password>MyPassword</Password>
      </Credentials>
   </RunSynchronousCommand>
<!-- Second synchronous command to execute -->
   <RunSynchronousCommand>
      <Order>2</Order>
      <Path>C:\AnotherApplication.exe</Path>
      <Description>DescriptionOfMyApplication</Description>
   </RunSynchronousCommand>
</RunSynchronous>

RunSynchronousCommandRunSynchronousCommand