認證 (microsoft-windows-setup-runsynchronous-runsynchronouscommand-credentials)

Credentials 指定透過網路存取應用程式時所使用的認證。 Credentials 用來驗證 Path所指定位置的存取權。

所有 RunSynchronous 命令都會在系統內容中執行。

子元素

設定 描述
網域 指定用於驗證之帳戶的網域。
密碼 指定用於驗證的帳戶密碼。
使用者名稱 指定用於驗證之帳戶的使用者名稱。

有效的設定階段

windowsPE

父階層

Microsoft-Windows-Setup | RunSynchronous | RunSynchronousCommand | 憑據

套用至

如需此元件支援的 Windows 版本和架構清單,請參閱 Microsoft-Windows-Setup

XML 範例

下列 XML 輸出示範如何設定同步命令。

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

RunSynchronousCommand