UsernameUsername

Username 指定要用於驗證的帳戶的使用者名稱。Username specifies the user name of the account to use for authentication.

Values

使用者名稱Username

指定要用於驗證的帳戶名稱。Specifies the name of the account to use for authentication. 使用者名稱是一個字串。Username is a string.

此字串類型不支援空元素。This string type does not support empty elements. 請勿為此設定建立空值。Do not create an empty value for this setting.

有效的設定階段Valid Configuration Passes

auditUserauditUser

特製化specialize

父階層Parent Hierarchy

Microsoft-Windows-Deployment | RunSynchronous | RunSynchronousCommand | Credentials | UsernameMicrosoft-Windows-Deployment | RunSynchronous | RunSynchronousCommand | Credentials | Username

套用至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>

認證Credentials