LocalAccount (microsoft-windows-shell-設定-useraccounts-localaccounts-LocalAccount) LocalAccount (microsoft-windows-shell-setup-useraccounts-localaccounts-localaccount)

LocalAccount 指定要在安裝期間建立之本機帳戶的詳細資料。LocalAccount specifies the details of a local account to be created during installation.

子元素Child Elements

設定Setting 描述Description
說明Description 指定 LocalAccountSpecifies a LocalAccount.
DisplayNameDisplayName 指定的顯示名稱 LocalAccountSpecifies the display name for a LocalAccount.
群組Group 指定將加入的現有本機安全性群組的名稱 LocalAccountSpecifies the name of existing local security groups to which a LocalAccount will be added.
名稱Name 指定的使用者名稱 LocalAccountSpecifies the user name for a LocalAccount.
密碼Password 指定的密碼 LocalAccount ,以及密碼是否會在自動安裝回應檔案中隱藏。Specifies the password for a LocalAccount and whether the password is hidden in the unattended installation answer file.

有效的設定階段Valid Configuration Passes

auditSystemauditSystem

oobeSystemoobeSystem

父階層Parent Hierarchy

Microsoft-Windows-Shell-設定 | UserAccounts | LocalAccounts | LocalAccountMicrosoft-Windows-Shell-Setup| UserAccounts | LocalAccounts | LocalAccount

套用至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>
   <LocalAccounts>
      <LocalAccount wcm:action="add">
         <Password>
            <Value>cAB3AFAAYQBzAHMAdwBvAHIAZAA</Value>
            <PlainText>false</PlainText>
         </Password>
         <Description>Test account</Description>
         <DisplayName>Admin/Power User Account</DisplayName>
         <Group>Administrators;Power Users</Group>
         <Name>Test1</Name>
      </LocalAccount>
      <LocalAccount wcm:action="add">
         <Password>
            <Value>cABhAHMAcwB3AG8AcgBkAFAAYQBzAHMAdwBvAHIAZAA=</Value>
            <PlainText>false</PlainText>
         </Password>
         <Description>For testing</Description>
         <DisplayName>Admin Account</DisplayName>
         <Group>Administrators</Group>
         <Name>Test2</Name>
      </LocalAccount>
   </LocalAccounts>
</UserAccounts>

LocalAccountsLocalAccounts