Submitted by Unknown
Now to add the creation of User Accounts to our CD/DVD's. This can be accomplished in two ways, depending on how you're most comfortable with, and the types of User accounts you wish to have.
There are two methods:
Also included on this page is to allow auto-logon of your created users. Bare in mind that the OOBEINFO.INI Method does NOT require the registry entry for auto-logon as long as there is only ONE user created.
» OOBEINFO.INI Method
NOTE: This method ONLY works on Windows XP/2003
Basically, what this is going to do is "automate" the user creation screen that you're normally presented when you install Windows. It's in the same part of setup where it asks you to register Windows and to set up your internet connection.
Let's get started shall we? First open up Notepad and copy the following and save it as OOBEINFO.INI
[UserInfo] Identity000="NewUser-Admin" Identity001="NewUser-User"
If you don't want two users created, simply delete the second Identity line. If you want another user add another Identity entry and increment the number. But be careful. You can have only 6 users created in this method. Also, Identity000 will be created as an Administrator account while each subsequent one will also be created as an Administrator account.
Once you have finished editing the file, save it in $OEM$\$$\system32\oobe and you're done.
» NET USER Method
This is the original method outlined on the previous rendition of the site. This method however works across all NT platforms and allows you to create as many users as you want in as many types as you want. Hence, this one is more powerful.
Open Notepad, and copy & paste in the following:
Save this as cmdlines.txt in the $OEM$\ folder. If you wish to know more about cmdlines.txtcheck the Reference section.
Notice that we are trying to launch useraccounts.cmd from there. Again open Notepad and paste in the following:
net user John asdf1234 /add net localgroup Administrators John /add net accounts /maxpwage:unlimited REGEDIT /S autologon.reg EXIT
This adds the user John with a password of asdf1234, and adds John to the Administrators Group. net accounts /maxpwage:unlimited makes sure that the account password doesn't expire after 14 days (This is a system-wide setting). Replace with a username and password of your choice and then save this as useraccounts.cmd in the $OEM$ folder.
You may want to take note of one thing: If you want to create a user name that has spacing, for example John Doe, you should surround them with quotes. It would be like so:
net user "John Doe" asdf1234 /add
Next, we want to import the Auto Logon entry into the Registry (This is what the "REGEDIT /S autologon.reg" entry in useraccounts.cmd is for). Open Notepad and paste in the following:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "DefaultUserName"="John" "DefaultPassword"="asdf1234" "AutoAdminLogon"="1"
Edit your Username & Password, then save this as autologon.reg in the $OEM$\ folder.
By now, you should have all three files in the $OEM$ folder, which are: cmdlines.txt, useraccounts.cmd and autologon.reg
Last updated 2005-12-14 16:56:19 by Unknown