Bolus123 Posted April 19, 2007 Share Posted April 19, 2007 Hi there,I made an XP Home unattended DVD and I ran in to some problems regarding the users. What I want is to just use the Administrator account and to automatically log in. The thing is XP Home creates an "Eigenaar" account (Dutch for Owner). So all my config files etc fail because they point to the "Administrator" account. I tried deleting the "Eigenaar account", and that works but now I can't log in at all, there are just no users when I normally boot. Of course I can log in safe mode and do the job, but I need it to be unatteded. How do I get the normal User behaviour (like XP Pro)? Link to comment Share on other sites More sharing options...
CmdrX3 Posted April 19, 2007 Share Posted April 19, 2007 (edited) Well I got this from this site somewhere, and have used it ever since with no problems.Save this code in a file called install.cmd or whatever else you want in the $OEM$ folderset _USER=Usernamenet user %_USER% "" /add >nulnet localgroup administrators "%_USER%" /add>nul%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%_USER%" /f%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserPassword" /d "" /f%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /fIf you haven't already, create a file called cmdlines.txt also in the $OEM$ folder containing this code[COMMANDS]".\install.cmd"Just make sure the filename you specify in cmdlines.txt is the same as the filename you save the first section of code as.This will create the username that you use as administrator and automatically login with it. Hope this helps Edited April 19, 2007 by CmdrX3 Link to comment Share on other sites More sharing options...
Bolus123 Posted April 19, 2007 Author Share Posted April 19, 2007 Thanks for your reply. I tried your suggestion, but it doesn't work here. It display's an error message:"Windows cannot log in because of account restrictions" (or something like this, I translated from Dutch) Link to comment Share on other sites More sharing options...
DonDamm Posted April 19, 2007 Share Posted April 19, 2007 Hmm. I used a slightly different, but similar method. I used two files - both in the $OEM$ folder.useraccounts.cmdnet user Bolus123 passwordhere /addnet localgroup Administrators Bolus123 /addnet accounts /maxpwage:unlimitedREGEDIT /S autologon.regEXITand autologon.regWindows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"DefaultUserName"="Bolus123""DefaultPassword"="passwordhere""AutoAdminLogon"="1"The AutoAdminLogon can be set to more if you want. But then you can use TweakUI to do that too.You can use the first file to set up more user accounts, too if you want, but the login default will be to the oneyou set here.Hope that helps. Link to comment Share on other sites More sharing options...
Bolus123 Posted April 20, 2007 Author Share Posted April 20, 2007 Works like a charme, thanks a lot guys. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now