Hi Garlin,There's two ways of adding multiple user accounts:
1. Unattended's Add local account wizard.
View attachment 9078
View attachment 9079
2. Create additional users with Post-Setup commands:
View attachment 9082
NTLite can't import existing autounattend files to the preset, but you can copy it to the ISO folder. When you make a new ISO, autounattend will be included.
<UserAccounts>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Group>Administrators</Group>
<Name>GARLIN</Name>
<Password>
<PlainText>true</PlainText>
<Value></Value>
</Password>
</LocalAccount>
<LocalAccount wcm:action="add">
<DisplayName>Jane Doe</DisplayName>
<Name>JANEDOE</Name>
<Password>
<PlainText>true</PlainText>
<Value></Value>
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
net user janedoe xyz123 /ADD /passwordchg:no /expires:never /active:yes /fullname:"Jane Doe"
net localgroup users janedoe /add
• | Microsoft Windows XP Home Edition |
• | Microsoft Windows XP Professional Edition |
• | Microsoft Windows XP 64-Bit Edition |
<UserAccounts>
<LocalAccounts>
<LocalAccount>
<Group>Users</Group> <-- Missing line
<Name>Student</Name>
<Password>
<PlainText>true</PlainText>
<Value></Value>
</Password>
</LocalAccount>
<LocalAccount>
<Group>Administrators</Group>
<Name>Teacher</Name>
<Password>
<PlainText>true</PlainText>
<Value></Value>
</Password>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
Thanks for your reply. I was actually able to correct it by simply changing the "Group" drop-down list to "Custom" and then manually specifying "Users" under "Custom Group".I've confirmed the problem, as you reported: NTLite is losing Student's group membership.
Add new user Student, as member of Users.
View attachment 9557
Add new user Teacher, as member of Administrators. Check Unattended, and Student has lost their group membership.
View attachment 9558
The only way to bypass this problem is save the preset, manually add the missing line for Student's group membership. Load the modified preset into NTLite, and make the image.
Code:<UserAccounts> <LocalAccounts> <LocalAccount> <Group>Users</Group> <-- Missing line <Name>Student</Name> <Password> <PlainText>true</PlainText> <Value></Value> </Password> </LocalAccount> <LocalAccount> <Group>Administrators</Group> <Name>Teacher</Name> <Password> <PlainText>true</PlainText> <Value></Value> </Password> </LocalAccount> </LocalAccounts> </UserAccounts>
View attachment 9559
Thank you for the response.UPDATE: My NTLite session was incorrectly started with debug flags, causing a broken image. But the 2nd comment is true.
I tried to correctly add a Teacher (Administrator) and autologon Student (Users) in Unattended, and OOBE didn't finish. There's probably some conflict where Windows assumes the autologon user is primary user, but requires that person to have admin rights to complete setup.
It's true the User Name isn't allowed to match the Computer Name. nuhi should check for this case.
https://web.archive.org/web/20050212120159/http://support.microsoft.com/kb/310845/EN-US/
SYMPTOMS
If you try to create a user account on a computer and try to use the computer name for the user account name, you receive the following error message:
The user name may not be the same as the computer name computer name
CAUSE
This behavior occurs to prevent users from creating user names with the same user name as the computer's name. This check is made to prevent problems with programs that use NetBIOS name registrations, which can mistakenly use the 03 NetBIOS entry (registered in this case by the user), rather than the 20 NetBIOS entry, which represents the workstation's Server service. Such errors can prevent programs from working properly.
RESOLUTION
To work around this behavior, do not try to use the computer name for a user account.
STATUS
This behavior is by design.
MORE INFORMATION
Several NetBIOS names are registered for a workstation, and these reflect the roles of the workstation, or of the services that are installed. The following list contains the entries that are registered and that can be displayed with the nbtstat -a server namecommand:
Local Area Connection:
Node IpAddress: [169.54.160.92] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
SERVERNAME <00> UNIQUE Registered
DOMAIN <00> GROUP Registered
SERVERNAME <03> UNIQUE Registered
SERVERNAME <20> UNIQUE Registered
DOMAIN <1E> GROUP Registered
USERNAME <03> UNIQUE Registered
MAC Address = 00-B0-D0-DC-E5-87
In the preceding example, the computer has registered a 00, a 03, and a 20 entry, and these correspond to the Workstation service, the Messenger service, and the Server service, respectively.
The username creation is disallowed to prevent the situation where the username 03 and servername 03 entries would be in conflict. In this case, it is possible for programs that rely on these entries (as well as the Server service entry), to use the wrong interface to communicate.
APPLIES TO
• Microsoft Windows XP Home Edition • Microsoft Windows XP Professional Edition • Microsoft Windows XP 64-Bit Edition