This documentation is archived and is not being maintained.


LocalAccounts specifies local accounts to be created during installation.

You can use the sysprep/generalize command in conjunction with LocalAccounts to change account information. See the Best Practices for Authoring Answer Files topic for details.

Child Elements



Specifies a local account to be created during installation.

Valid Passes

Parent Hierarchy

Applies To

For the list of the supported Windows editions and architectures that this component supports, see Microsoft-Windows-Shell-Setup.

XML Example

The following XML output shows how to set user accounts.

      <LocalAccount wcm:action="add">
         <Description>Test account</Description>
         <DisplayName>Admin/Power User Account</DisplayName>
         <Group>Administrators;Power Users</Group>
      <LocalAccount wcm:action="add">
         <Description>For testing</Description>
         <DisplayName>Admin Account</DisplayName>

See Also