DomainAccountsDomainAccounts

DomainAccounts 指定要在安裝期間新增到電腦上的本機安全性群組的網域帳戶的詳細資料。DomainAccounts specifies the details of domain accounts to be added to local security groups on the computer during installation.

子項目Child Elements

設定Setting 描述Description
DomainAccountListDomainAccountList 指定的網域和要建立的網域帳戶。Specifies the domains and the domain accounts to be created.

有效的設定階段Valid Configuration Passes

auditSystemauditSystem

oobeSystemoobeSystem

父階層Parent Hierarchy

Microsoft-Windows-Shell-Setup | UserAccounts | DomainAccountsMicrosoft-Windows-Shell-Setup | UserAccounts | DomainAccounts

套用至Applies To

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

XML 範例XML Example

下列的 XML 輸出會顯示如何設定UserAccountsThe following XML output shows how to set UserAccounts.

<UserAccounts>
   <DomainAccounts>
      <DomainAccountList wcm:action="add">
         <DomainAccount wcm:action="add">
            <Name>account1</Name>
            <Group>Fabrikam\Group1</Group>
         </DomainAccount>
         <DomainAccount wcm:action="add">
            <Name>account2</Name>
            <Group>Fabrikam\Group2</Group>
         </DomainAccount>
         <Domain>domain1</Domain>
      </DomainAccountList>
      <DomainAccountList wcm:action="add">
         <DomainAccount wcm:action="add">
            <Name>account3</Name>
            <Group>Fabrikam\Group2</Group>
         </DomainAccount>
         <Domain>domain2</Domain>
     </DomainAccountList>
   </DomainAccounts>
</UserAccounts>

UserAccountsUserAccounts