認證Credentials

Credentials 指定要存取時使用的認證路徑Credentials specifies the credentials to use when accessing the Path.

子項目Child Elements

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

有效的設定階段Valid Configuration Passes

auditUserauditUser

特製化specialize

父階層Parent Hierarchy

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

套用至Applies To

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

XML 範例XML Example

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

<RunSynchronous>
   <RunSynchronousCommand wcm:action="add">
      <Credentials>
         <Domain>MyDomain</Domain>
         <Password>MyPassword</Password>
         <Username>MyUsername</Username>
      </Credentials>
      <Description>MySynchCommand1</Description>
      <Order>1</Order>
      <Path>\\network\server\share\filename</Path>
      <WillReboot>OnRequest</WillReboot>
   </RunSynchronousCommand>
   <RunSynchronousCommand wcm:action="add">
      <Credentials>
         <Domain>MyDomain</Domain>
         <Password>MyPassword</Password>
         <Username>MyUsername</Username>
      </Credentials>
      <Description>MySynchCommand2</Description>
      <Order>2</Order>
      <Path>\\network\server\share\filename</Path>
      <WillReboot>OnRequest</WillReboot>
   </RunSynchronousCommand>
</RunSynchronous>

RunSynchronousCommandRunSynchronousCommand