LocalAccount specifies the details of a local account to be created during installation.

Child Elements

Description

Specifies a LocalAccount.

DisplayName

Specifies the display name for a LocalAccount.

Group

Specifies the name of existing local security groups to which a LocalAccount will be added.

Name

Specifies the user name for a LocalAccount.

Password

Specifies the password for a LocalAccount and whether the password is hidden in the unattended installation answer file.

Valid Passes

auditSystem

oobeSystem

Parent Hierarchy

Applies To

For a 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 UserAccounts.

  Copy Code
<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>

See Also

Concepts

LocalAccounts