Name specifies the user name for a LocalAccount to be created during installation.



Specifies the name of a LocalAccount. Name is a string with a maximum length of 256 characters.

Do not use any of the following characters: "/[]:|<>+=;,?*%@

Do not use the name "NONE", this is a restricted username.

This string type does not support empty elements. Do not create an empty value for this setting.

Some Unicode characters such as emoji appear as with the placeholder character: ? (question mark) in command prompts, but appear correctly in other locations such as File Explorer.

Users who sign-in with a Microsoft account will frequently see that their underlying profile path does not match their firstname / lastname. When this happens, you will see an account in the form: username_001.

Valid Configuration Passes



Parent Hierarchy

Microsoft-Windows-Shell-Setup | UserAccounts | LocalAccounts | LocalAccount | Name

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.

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