認證 (microsoft-windows-deployment-runasynchronous-runasynchronouscommand-credentials)

Credentials 會指定存取 Path時要使用的認證。

子元素

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

有效的組態傳遞

auditUser

特殊化

父階層

Microsoft-Windows-Deployment | RunAsynchronous | RunAsynchronousCommand | 憑據

套用至

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

XML 範例

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

<RunAsynchronous>
   <RunAsynchronousCommand wcm:action="add">
      <Credentials>
         <Domain>MyDomain</Domain>
         <Password>MyPassword</Password>
         <Username>MyUsername</Username>
      </Credentials>
      <Description>AsynchCommand1</Description>
      <Order>1</Order>
      <Path>\\network\server\share\filename</Path>
   </RunAsynchronousCommand>
   <RunAsynchronousCommand wcm:action="add">
      <Credentials>
         <Domain>MyDomain</Domain>
         <Password>MyPassword</Password>
         <Username>MyUsername</Username>
      </Credentials>
      <Description>AsynchCommand2</Description>
      <Order>2</Order>
      <Path>\\network\server\share\filename</Path>
   </RunAsynchronousCommand>
</RunAsynchronous>

RunAsynchronousCommand